Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to v3.0RC02 #18

Merged
merged 122 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
88efce9
Upgrade the model module to version 1.2.0 (latest one already publish…
sebbader-sap Jun 3, 2022
49cd48c
Adjusting the groupIds in the child poms.
sebbader-sap Jun 3, 2022
af404c8
RC02 Upgrades in terms of compilable code (failing tests!) of:
sebbader-sap Jun 3, 2022
3e89993
Version 0.1.0-SNAPSHOT for the dataformat modules and the validator
sebbader-sap Jun 3, 2022
c5964e8
Adding the newly created JSON schema
sebbader-sap Jun 3, 2022
02f3740
Fix: Change AssetInformation/specificAssetId valut to List<SpecificAs…
sebbader-sap Jun 23, 2022
a882705
Fix: Resolve Exceptions in dataformat-json
sebbader-sap Jun 23, 2022
28c009f
Merge pull request #3 from sebbader/feature/update-to-3.0RC02
sebbader-sap Jul 14, 2022
eaf5f70
Fix sentence in DefaultImpl comments
sebbader-sap Jul 15, 2022
4c23ca6
Fix JsonDeserializerTest
sebbader-sap Jul 15, 2022
4a816bd
Fix all tests apart the HasDataSpecification.embeddedDataSpecfication…
sebbader-sap Jul 18, 2022
9c87ff1
Fix the package path, removed the rc02 part
sebbader-sap Jul 18, 2022
4fed3c4
Fix the representation of langStrings in JSON
sebbader-sap Jul 22, 2022
b02edad
Fix Json Serialiser looks in the right package for Mixins
sebbader-sap Jul 22, 2022
cb5b443
Add DataSpecificationTemplates incl. DataSpecificationIEC61360 and Da…
sebbader-sap Jul 22, 2022
5ee9749
Fix Model and JSON handling for DataSpecificationIEC61360
sebbader-sap Jul 25, 2022
c116cf7
Change revision number back to 0.1.0 as 0.2.0 is not justified yet.
sebbader-sap Jul 25, 2022
fe5e096
Fix typo in the model.version entry
sebbader-sap Aug 3, 2022
89694e9
Upgrade RDF dataformat to RC02
sebbader-sap Aug 3, 2022
7f19c3f
Finish first draft of updating RDF examples to RC02.
changqin26 Aug 5, 2022
413d88f
Bring back the aml module in the pom.
changqin26 Aug 5, 2022
01586da
fix JSON de-/serializer where possible, otherwise adding comments on …
mjacoby Aug 8, 2022
cac2aad
removing AML serialization until official specification is available
mjacoby Aug 8, 2022
675ebbb
removing OPC UA nodeset serialization until official specification is…
mjacoby Aug 8, 2022
b781795
Update the examples according to comments from S.Bader
changqin26 Aug 9, 2022
257e7f2
* changing the logging level for the happy case of the ReflectionHelp…
sebbader-sap Aug 17, 2022
4f21858
* Update test files, mainly the full example to comply with the lates…
sebbader-sap Aug 17, 2022
88de803
Merge commit '675ebbbc09ea9e76cae893ab0d64f8cd69683b41' into update-t…
sebbader-sap Aug 17, 2022
80601cf
Fix: ValueList/valueReferencePairTypes --> ValueList/valueReferenceP…
sebbader-sap Aug 17, 2022
a6fd49e
Fix: JSON example files to the file pattern and the ModelReferences
sebbader-sap Aug 17, 2022
9e50db8
Fix: Change SubmodelElementCollections which are ordered to SubmodelE…
sebbader-sap Aug 17, 2022
7850efe
Adapts XML files to new ground truth
FrankSchnicke Aug 18, 2022
dfd3f09
Upgrade "src/test/resources/Example_AAS_ServoDCMotor - Simplified V2.…
sebbader-sap Aug 18, 2022
852a8b7
Fix XML Validation tests with the new XML Schema
sebbader-sap Sep 1, 2022
e5341e4
Adjust to the new XML schema
sebbader-sap Sep 2, 2022
d942d9a
Removes license check
FrankSchnicke Sep 5, 2022
394120e
Aligns jsonExample with new ground truth
FrankSchnicke Sep 5, 2022
c954e1a
Update model to latest understanding of EmbeddedDataSpecifications
sebbader-sap Sep 5, 2022
c51136d
Removes license check
FrankSchnicke Sep 5, 2022
5ac3a53
Adapts XMLs to new ground truth
FrankSchnicke Sep 6, 2022
1c97602
Merge pull request #23 from eclipse-digitaltwin/update-to-rc02-remove…
FrankSchnicke Sep 6, 2022
18b8dd9
Update the CompleteExample according to the version in AAS-SPEC repo.
changqin26 Sep 7, 2022
1a54155
Update all examples according to CompleteExample
changqin26 Sep 7, 2022
bbdbef2
Update XML Mixins and UnitTests for the Deserialiser
sebbader-sap Sep 8, 2022
31d8341
Update http://www.admin-shell.io/aas/3/0/RC02/ to https://www.admin-s…
changqin26 Sep 9, 2022
f77ac01
Add Qualifier deserialization test
sebbader-sap Sep 9, 2022
152f712
Update RDF examples
sebbader-sap Sep 9, 2022
d74ba7a
Merge pull request #1 from sebbader/update-to-rc02-rdf-examples
changqin26 Sep 9, 2022
edcded6
Merge pull request #17 from changqin26/update-to-rc02
sebbader-sap Sep 9, 2022
8ebf938
Update JSON examples
sebbader-sap Sep 9, 2022
f36b54c
Update JsonReferableDeserializerTest
sebbader-sap Sep 9, 2022
230345d
Update JsonReferableDeserializerTest
sebbader-sap Sep 9, 2022
deadaf9
Update AASFull.json - first part
sebbader-sap Sep 9, 2022
d3ad735
Update example JSON files and UnitTest
sebbader-sap Sep 9, 2022
f4592a4
Readded the testSerializeSubmodelElementCollection UnitTest
sebbader-sap Sep 9, 2022
61a4572
Merge branch 'update-to-rc02' into update-to-rc02-xml
FrankSchnicke Sep 13, 2022
1d56dd1
Merge pull request #21 from eclipse-digitaltwin/update-to-rc02-xml
FrankSchnicke Sep 13, 2022
f46240a
Merge branch 'update-to-rc02' into update-to-rc02-json-merge
FrankSchnicke Sep 13, 2022
d929287
Update JsonReferableSerializerTest - replacing wild card in import
sebbader-sap Sep 14, 2022
78f29cd
Fix descriptions --> description
sebbader-sap Sep 14, 2022
ca1f301
remove license plugin
mjacoby Sep 16, 2022
110db04
add test case for empty SubmodelElementList
mjacoby Sep 16, 2022
f066eec
Merge branch 'update-to-rc02-smlist-tests' of github.com:eclipse-digi…
mjacoby Sep 16, 2022
de0cae0
Fixes Qualifier deserialization
FrankSchnicke Sep 16, 2022
7fcac91
Fix AasUtils enum name deserialization
tschuba Sep 16, 2022
198caa1
Delete BasicEventMixin due to removal of related model class
tschuba Sep 23, 2022
1913da4
Add DataSpecificationContent for JSON-specific modelType de-/serializ…
tschuba Sep 23, 2022
07aebcf
Update AASSimple DataSpecification reference
tschuba Sep 23, 2022
606311f
Remove DataSpecificationIEC61360Mixin's unnecessary definitions property
tschuba Sep 23, 2022
d20bff1
Fix EnvironmentMixin's empty properties serialization
tschuba Sep 23, 2022
03ff25d
Fix simple AAS JSON test data
tschuba Sep 23, 2022
e4f4d9d
Finalize renaming property descriptions to description
tschuba Sep 23, 2022
966facf
Fix enum deserialization from lower camel-case
tschuba Sep 26, 2022
fbc09ee
Fix full JSON test data
tschuba Sep 26, 2022
8f54fad
Add mockito to test dependencies
tschuba Sep 26, 2022
aa424f6
Fix serialization of Direction and StateOfEvent
tschuba Sep 26, 2022
3091d83
Fix descriptions -> description in JSON test data
tschuba Sep 26, 2022
633edff
Merge pull request #33 from tschuba/update-to-rc02-json
sebbader-sap Sep 26, 2022
2b0db63
Update 'model' with newly generated classes
sebbader-sap Sep 27, 2022
a86fb1d
fix the outdated test files for the RDF serializer tests
sebbader-sap Sep 27, 2022
5149184
extend RDF serialiser tests
sebbader-sap Sep 27, 2022
ce4a439
add initial AAS Full RDF Parser UnitTest
sebbader-sap Sep 28, 2022
b83940f
add new generator output incl. missing default values
sebbader-sap Oct 10, 2022
b6db56d
Add qualifier assertions for XML deserialization tests
tschuba Oct 12, 2022
87fd029
fix qualifier deserialization bug
sebbader-sap Oct 14, 2022
df0471e
Fix description setters in default model implementations
tschuba Oct 19, 2022
f7912fb
Add operation deserialization unit test
tschuba Oct 19, 2022
0fd59e3
Add missing descriptions in XML test data
tschuba Oct 19, 2022
3c34c93
fix missing description in test_demo_full_example.xml
sebbader-sap Oct 24, 2022
9fae555
Merge commit 'df0471e96241b58e6e0632cf8808fa842a8ae479' into update-t…
sebbader-sap Oct 24, 2022
888a9a5
fix allfix all XML Deserialiser UnitTests
sebbader-sap Oct 25, 2022
6e176ce
fix xml serialiser and deserialiser so that all unit tests are green
sebbader-sap Oct 26, 2022
9568e58
Merge branch 'update-to-rc02-rdf' into update-to-rc02-json
sebbader-sap Oct 28, 2022
f2f68ea
Merge branch 'update-to-rc02-smlist-tests' into update-to-rc02-json
sebbader-sap Oct 28, 2022
ad42820
Merge branch 'update-to-rc02-xml' into update-to-rc02-json
sebbader-sap Oct 28, 2022
ff20808
Merge branch 'update-to-rc02-json' into update-to-rc02
sebbader-sap Oct 28, 2022
4557a6f
fix the default categories
sebbader-sap Oct 28, 2022
68ba2a7
change groupId from org.eclipse.aas4j to org.eclipse.digitaltwin.aas4j
sebbader-sap Nov 9, 2022
d23b4ae
Upgrade revision as the package path change is a big one
sebbader-sap Nov 11, 2022
ec193fe
Merge pull request #42 from eclipse-aas4j/rename-package-paths-and-gr…
sebbader-sap Nov 11, 2022
834eff5
started updating dataformat-core to v3.0RC02
mjacoby Nov 14, 2022
399bdd8
Update dataformat-core and dataformat-json
mjacoby Nov 16, 2022
31226bb
fix resources
mjacoby Nov 16, 2022
1a76a01
fix imports and active unit tests in dataformat-xml
mjacoby Nov 16, 2022
d0a4c8e
Merge remote-tracking branch 'fork/update-to-rc02-xml' into update-to…
tschuba Nov 24, 2022
083b618
Fix XML test data
tschuba Nov 25, 2022
29f74b0
Remove skipTests=true from pom.xml
tschuba Nov 25, 2022
0a69918
fix sequence of aas:description in example file
sebbader-sap Nov 28, 2022
e382034
fix the schema locations and namespaces in the XML unit tests
sebbader-sap Nov 28, 2022
8ff7770
Merge commit '1a76a01d2f2b51bba2131b0ebb4a83e44a567616' into update-t…
sebbader-sap Nov 29, 2022
e7e3172
add DataSpecificationManager again to cover the DataSpecification pro…
sebbader-sap Nov 29, 2022
c19afb4
fix wrong typeValueListElement entry in test files
sebbader-sap Nov 29, 2022
512c075
Removes warnings
FrankSchnicke Dec 1, 2022
6db8570
Removes unused Serializers
FrankSchnicke Dec 1, 2022
6790f38
Renames wrongly named XMLs
FrankSchnicke Dec 1, 2022
20dafe1
Removes redundant file reference
FrankSchnicke Dec 1, 2022
6d06e2d
Merge pull request #48 from eclipse-aas4j/update-to-rc02-xml
sebbader-sap Dec 6, 2022
f82a78f
change filename from lower to upper case
mjacoby Dec 9, 2022
fbb19f5
Merge pull request #49 from eclipse-aas4j/bugfix/failing-json-test
mjacoby Dec 9, 2022
307b937
re-enabling the aasx tests and fixing the aasx code
sebbader-sap Dec 9, 2022
2068541
resolve changes requested in pr#52
sebbader-sap Dec 14, 2022
eba7de7
Merge pull request #52 from eclipse-aas4j/update-to-rc02-aasx
sebbader-sap Dec 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 0 additions & 13 deletions dataformat-aasx/license-header.txt

This file was deleted.

8 changes: 5 additions & 3 deletions dataformat-aasx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.admin-shell.aas</groupId>
<groupId>org.eclipse.digitaltwin.aas4j</groupId>
<artifactId>dataformat-parent</artifactId>
<version>${revision}</version>
</parent>
Expand All @@ -13,12 +13,12 @@

<dependencies>
<dependency>
<groupId>io.admin-shell.aas</groupId>
<groupId>${groupId}</groupId>
<artifactId>dataformat-xml</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>io.admin-shell.aas</groupId>
<groupId>${groupId}</groupId>
<artifactId>dataformat-core</artifactId>
<version>${revision}</version>
<classifier>tests</classifier>
Expand All @@ -41,4 +41,6 @@
<version>${commons-io.version}</version>
</dependency>
</dependencies>


</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.adminshell.aas.v3.dataformat.aasx;
package org.eclipse.digitaltwin.aas4j.v3.dataformat.aasx;

import java.io.IOException;
import java.io.InputStream;
Expand All @@ -29,14 +29,14 @@
import org.apache.poi.openxml4j.opc.PackageRelationshipCollection;
import org.apache.poi.openxml4j.opc.PackagingURIHelper;

import io.adminshell.aas.v3.dataformat.DeserializationException;
import io.adminshell.aas.v3.dataformat.Serializer;
import io.adminshell.aas.v3.dataformat.xml.XmlDeserializer;
import io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment;
import io.adminshell.aas.v3.model.File;
import io.adminshell.aas.v3.model.Submodel;
import io.adminshell.aas.v3.model.SubmodelElement;
import io.adminshell.aas.v3.model.SubmodelElementCollection;
import org.eclipse.digitaltwin.aas4j.v3.dataformat.DeserializationException;
import org.eclipse.digitaltwin.aas4j.v3.dataformat.Serializer;
import org.eclipse.digitaltwin.aas4j.v3.dataformat.xml.XmlDeserializer;
import org.eclipse.digitaltwin.aas4j.v3.model.Environment;
import org.eclipse.digitaltwin.aas4j.v3.model.File;
import org.eclipse.digitaltwin.aas4j.v3.model.Submodel;
import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement;
import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection;

/**
* The AASX package converter converts a aasx package into a list of aas, a list
Expand All @@ -49,7 +49,7 @@ public class AASXDeserializer {

private XmlDeserializer deserializer = new XmlDeserializer();

private AssetAdministrationShellEnvironment environment;
private Environment environment;
private final OPCPackage aasxRoot;

/**
Expand Down Expand Up @@ -85,7 +85,7 @@ public AASXDeserializer(XmlDeserializer deserializer, InputStream inputStream) t
* @throws IOException if creating input streams for aasx fails
* @throws DeserializationException if deserialization of the serialized aas environment fails
*/
public AssetAdministrationShellEnvironment read() throws InvalidFormatException, IOException, DeserializationException {
public Environment read() throws InvalidFormatException, IOException, DeserializationException {
// If the XML was already parsed return cached environment
if (environment != null) {
return environment;
Expand Down Expand Up @@ -160,15 +160,10 @@ private List<String> parseElements(Collection<SubmodelElement> elements) {
for (SubmodelElement element : elements) {
if (element instanceof File) {
File file = (File) element;
// If the path contains a "://", we can assume, that the Path is a link to an
// other server
// e.g. http://localhost:8080/aasx/...
if (!file.getValue().contains("://")) {
paths.add(file.getValue());
}
paths.add(file.getValue());
} else if (element instanceof SubmodelElementCollection) {
SubmodelElementCollection collection = (SubmodelElementCollection) element;
paths.addAll(parseElements(collection.getValues()));
paths.addAll(parseElements(collection.getValue()));
}
}
return paths;
Expand All @@ -192,7 +187,7 @@ public List<InMemoryFile> getRelatedFiles() throws InvalidFormatException, IOExc
}

private InMemoryFile readFile(OPCPackage aasxRoot, String filePath) throws InvalidFormatException, IOException {
PackagePart part = aasxRoot.getPart(PackagingURIHelper.createPartName(filePath));
PackagePart part = aasxRoot.getPart(PackagingURIHelper.createPartName(AASXUtils.getPathFromURL(filePath)));
InputStream stream = part.getInputStream();
return new InMemoryFile(stream.readAllBytes(), filePath);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.adminshell.aas.v3.dataformat.aasx;
package org.eclipse.digitaltwin.aas4j.v3.dataformat.aasx;

import java.io.IOException;
import java.io.OutputStream;
Expand All @@ -30,17 +30,19 @@
import org.apache.poi.openxml4j.opc.RelationshipSource;
import org.apache.poi.openxml4j.opc.TargetMode;
import org.apache.poi.openxml4j.opc.internal.MemoryPackagePart;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.adminshell.aas.v3.dataformat.SerializationException;
import io.adminshell.aas.v3.dataformat.Serializer;
import io.adminshell.aas.v3.dataformat.xml.XmlSerializer;
import io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment;
import io.adminshell.aas.v3.model.File;
import io.adminshell.aas.v3.model.Submodel;
import io.adminshell.aas.v3.model.SubmodelElement;
import io.adminshell.aas.v3.model.SubmodelElementCollection;
import org.eclipse.digitaltwin.aas4j.v3.model.File;
import org.eclipse.digitaltwin.aas4j.v3.model.Environment;
import org.eclipse.digitaltwin.aas4j.v3.model.Submodel;
import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElement;
import org.eclipse.digitaltwin.aas4j.v3.model.SubmodelElementCollection;

import org.eclipse.digitaltwin.aas4j.v3.dataformat.SerializationException;
import org.eclipse.digitaltwin.aas4j.v3.dataformat.Serializer;
import org.eclipse.digitaltwin.aas4j.v3.dataformat.xml.XmlSerializer;

/**
* This class can be used to generate an .aasx file from Metamodel Objects and
Expand Down Expand Up @@ -87,7 +89,7 @@ public AASXSerializer(Serializer xmlSerializer) {
* @throws SerializationException if serializing the given elements fails
* @throws IOException if creating output streams for aasx fails
*/
public void write(AssetAdministrationShellEnvironment environment, Collection<InMemoryFile> files, OutputStream os)
public void write(Environment environment, Collection<InMemoryFile> files, OutputStream os)
throws SerializationException, IOException {
prepareFilePaths(environment.getSubmodels());

Expand Down Expand Up @@ -117,15 +119,15 @@ public void write(AssetAdministrationShellEnvironment environment, Collection<In
* @param xmlPart the Part the files should be related to
*/
private void storeFilesInAASX(List<Submodel> submodelList, Collection<InMemoryFile> files, OPCPackage rootPackage,
PackagePart xmlPart) {
PackagePart xmlPart) {

for (Submodel sm : submodelList) {
for (File file : findFileElements(sm.getSubmodelElements())) {
String filePath = file.getValue();
String filePath = AASXUtils.getPathFromURL(file.getValue());
try {
InMemoryFile content = findFileByPath(files, filePath);
logger.trace("Writing file '" + filePath + "' to .aasx.");
createAASXPart(rootPackage, xmlPart, filePath, file.getMimeType(), AASSUPPL_RELTYPE, content.getFileContent());
createAASXPart(rootPackage, xmlPart, filePath, file.getContentType(), AASSUPPL_RELTYPE, content.getFileContent());
} catch (RuntimeException e) {
// Log that a file is missing and continue building the .aasx
logger.warn("Could not add File '" + filePath + "'. It was not contained in given InMemoryFiles.");
Expand Down Expand Up @@ -218,7 +220,7 @@ private Collection<File> findFileElements(Collection<SubmodelElement> elements)
files.add((File) element);
} else if (element instanceof SubmodelElementCollection) {
// Recursive call to deal with SubmodelElementCollections
files.addAll(findFileElements(((SubmodelElementCollection) element).getValues()));
files.addAll(findFileElements(((SubmodelElementCollection) element).getValue()));
}
}

Expand All @@ -244,59 +246,25 @@ private void prepareFilePaths(Collection<Submodel> submodels) {
*/
private InMemoryFile findFileByPath(Collection<InMemoryFile> files, String path) {
for (InMemoryFile file : files) {
if (preparePath(file.getPath()).equals(path)) {
if (AASXUtils.getPathFromURL(file.getPath()).equals(path)) {
return file;
}
}
throw new RuntimeException("The wanted file '" + path + "' was not found in the given files.");
}

/**
* Removes the serverpart from a path and ensures it starts with a slash
* Removes the serverpart from a path and ensures it starts with "file://"
*
* @param path the path to be prepared
* @return the prepared path
*/
private String preparePath(String path) {
String newPath = getPathFromURL(path);
if (!newPath.startsWith("/")) {
newPath = "/" + newPath;
String newPath = AASXUtils.getPathFromURL(path);
if (!newPath.startsWith("file://")) {
newPath = "file://" + newPath;
}
return newPath;
}

/**
* Gets the path from a URL e.g "http://localhost:8080/path/to/test.file"
* results in "/path/to/test.file"
*
* @param url
* @return the path from the URL
*/
private String getPathFromURL(String url) {
if (url == null) {
return null;
}

if (url.contains("://")) {

// Find the ":" and and remove the "http://" from the url
int index = url.indexOf(":") + 3;
url = url.substring(index);

// Find the first "/" from the URL (now without the "http://") and remove
// everything before that
index = url.indexOf("/");
url = url.substring(index);

// Recursive call to deal with more than one server parts
// (e.g. basyx://127.0.0.1:6998//https://localhost/test/)
return getPathFromURL(url);
} else {
// Make sure the path has a / at the start
if (!url.startsWith("/")) {
url = "/" + url;
}
return url;
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package org.eclipse.digitaltwin.aas4j.v3.dataformat.aasx;

public class AASXUtils {


/**
* Gets the path from a URL e.g "http://localhost:8080/path/to/test.file"
* results in "/path/to/test.file"
*
* @param url
* @return the path from the URL
*/
public static String getPathFromURL(String url) {
if (url == null) {
return null;
}

if (url.contains("://")) {

// Find the ":" and and remove the "http://" from the url
int index = url.indexOf(":") + 3;
url = url.substring(index);

// Find the first "/" from the URL (now without the "http://") and remove
// everything before that
index = url.indexOf("/");
url = url.substring(index);

// Recursive call to deal with more than one server parts
// (e.g. basyx://127.0.0.1:6998//https://localhost/test/)
return getPathFromURL(url);
} else {
// Make sure the path has a / at the start
if (!url.startsWith("/")) {
url = "/" + url;
}
return url;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.adminshell.aas.v3.dataformat.aasx;
package org.eclipse.digitaltwin.aas4j.v3.dataformat.aasx;

import java.io.IOException;
import java.io.InputStream;
Expand All @@ -22,7 +22,7 @@
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.xml.sax.SAXException;

import io.adminshell.aas.v3.dataformat.xml.XmlSchemaValidator;
import org.eclipse.digitaltwin.aas4j.v3.dataformat.xml.XmlSchemaValidator;

/**
* Class to validate the XML file inside an AASX-package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.adminshell.aas.v3.dataformat.aasx;
package org.eclipse.digitaltwin.aas4j.v3.dataformat.aasx;

import java.util.Arrays;

Expand Down

This file was deleted.

Loading