-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade the model module to version 1.2.0 (latest one already published on MAVEN CENTRAL). * Adjusting the groupIds in the child poms. * RC02 Upgrades in terms of compilable code of: * AASX * JSON * AML * XML * Version 0.2.0-SNAPSHOT for the dataformat modules and the validator * Version 1.3.RC02-SNAPSHOT for the model * adjusting the package names from org.eclipse.aas4j to org.eclipse.digitaltwin.aas4j * Adding the newly created JSON and XML schemas * Adding default values where the metamodel defines them * Fixing the behaviour for HasDataSpecification.embeddedDataSpecfication for the DataSpecificationIEC61360. * Fix the package path, removed the rc02 part * Fix the representation of langStrings in JSON * upgrade to minor version 0.2.0-SNAPSHOT * removing AML serialization until official specification is available * removing OPC UA nodeset serialization until official specification is available * Adjusting the files paths in AASSimple to match the new pattern * Adjust the ValueList according to the metamodel * Fix: example files to the file pattern and the ModelReferences * Fix: Change SubmodelElementCollections which are ordered to SubmodelElementLists for the AASFull test objects. * add test case for empty SubmodelElementList * Fix plural field names where the schemas use singular * Fix AasUtils enum name deserialization * add initial AAS Full RDF Parser UnitTest * fix qualifier deserialization bug Co-authored-by: Sebastian Bader <[email protected]> Co-authored-by: Chang Qin <[email protected]> Co-authored-by: Frank Schnicke <[email protected]>
- Loading branch information
1 parent
001dcec
commit 86126fb
Showing
1,580 changed files
with
49,904 additions
and
303,958 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...format-aasx/src/main/java/org/eclipse/digitaltwin/aas4j/v3/dataformat/aasx/AASXUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 0 additions & 65 deletions
65
.../test/java/io/adminshell/aas/v3/dataformat/aasx/deserialization/AASXDeserializerTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.