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

JSON-LD trials #455

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,488 changes: 1,488 additions & 0 deletions test_data/jsonld_context/context-fixed.jsonld

Large diffs are not rendered by default.

94 changes: 94 additions & 0 deletions test_data/jsonld_context/trials/AAS-jsonld-riot.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<https://base/something_142922d6>
a <https://admin-shell.io/aas/3/0/AssetAdministrationShell> ;
<https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation>
[ a <https://admin-shell.io/aas/3/0/AssetInformation> ;
<https://admin-shell.io/aas/3/0/AssetInformation/assetKind>
<https://admin-shell.io/aas/3/0/AssetKind/NotApplicable> ;
<https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId>
"something_eea66fa1"
] ;
<https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom>
[ a <https://admin-shell.io/aas/3/0/Reference> ;
<https://admin-shell.io/aas/3/0/Reference/keys>
[ a <https://admin-shell.io/aas/3/0/Key> ;
<https://admin-shell.io/aas/3/0/Key/type>
<https://admin-shell.io/aas/3/0/KeyTypes/AssetAdministrationShell> ;
<https://admin-shell.io/aas/3/0/Key/value>
"urn:an-example08:f3f73640"
] ;
<https://admin-shell.io/aas/3/0/Reference/type>
<https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference>
] ;
<https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels>
[ a <https://admin-shell.io/aas/3/0/Reference> ;
<https://admin-shell.io/aas/3/0/Reference/keys>
[ a <https://admin-shell.io/aas/3/0/Key> ;
<https://admin-shell.io/aas/3/0/Key/type>
<https://admin-shell.io/aas/3/0/KeyTypes/Submodel> ;
<https://admin-shell.io/aas/3/0/Key/value>
"urn:another-example03:8ad569a7"
] ;
<https://admin-shell.io/aas/3/0/Reference/type>
<https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference>
] ;
<https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications>
[ a <https://admin-shell.io/aas/3/0/EmbeddedDataSpecification> ;
<https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification>
[ a <https://admin-shell.io/aas/3/0/Reference> ;
<https://admin-shell.io/aas/3/0/Reference/keys>
[ a <https://admin-shell.io/aas/3/0/Key> ;
<https://admin-shell.io/aas/3/0/Key/type>
<https://admin-shell.io/aas/3/0/KeyTypes/GlobalReference> ;
<https://admin-shell.io/aas/3/0/Key/value>
"urn:some-company06:e9f47be2"
] ;
<https://admin-shell.io/aas/3/0/Reference/type>
<https://admin-shell.io/aas/3/0/ReferenceTypes/ExternalReference>
] ;
<https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent>
[ a <https://admin-shell.io/aas/3/0/DataSpecificationIec61360> ;
<https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName>
[ a <https://admin-shell.io/aas/3/0/LangStringPreferredNameTypeIec61360> ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"x-Sw4u3ZDO-nJLabnE" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"something_5282e98e"
] ;
<https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName>
[ a <https://admin-shell.io/aas/3/0/LangStringPreferredNameTypeIec61360> ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"en-UK" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"Something random in English 5b15c20d"
] ;
<https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value>
"something_13759f45"
]
] ;
<https://admin-shell.io/aas/3/0/HasExtensions/extensions>
[ a <https://admin-shell.io/aas/3/0/Extension> ;
<https://admin-shell.io/aas/3/0/Extension/name>
"something_94548e46"
] ;
<https://admin-shell.io/aas/3/0/Identifiable/administration>
[ a <https://admin-shell.io/aas/3/0/AdministrativeInformation> ] ;
<https://admin-shell.io/aas/3/0/Identifiable/id>
"something_142922d6" ;
<https://admin-shell.io/aas/3/0/Referable/category>
"something_1dc62cea" ;
<https://admin-shell.io/aas/3/0/Referable/description>
[ a <https://admin-shell.io/aas/3/0/LangStringTextType> ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"Tvwqa-500-8EQd-y-8f5-k-vqdMn7-Ohw9-CcA628-DHKP-hPAjUZ-cnr1REUf-S8-p-9X0r-wtCI-KunG3uzI-7dGUsrTu-fY7-C3-hFN-Y-ML69DgnJ-0-Y0H-TLACBVB-Z0HRibbz-yzSf8dvR-zAn-B-6h8VjcKX-jnwR-0Z8l-ghRIZ7mo-wZG7-zXHdSIV-Oy-8dH00A6L-nJY2dA1-57o8dQ-RpxkBTbE-qBJR-M-DyGDA3U-aguRfIhj-x-XmO-1u" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"something_0c9e872c"
] ;
<https://admin-shell.io/aas/3/0/Referable/displayName>
[ a <https://admin-shell.io/aas/3/0/LangStringNameType> ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"de-CH" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"something_1e73716d"
] ;
<https://admin-shell.io/aas/3/0/Referable/idShort>
"PiXO1wyHierj" .
100 changes: 100 additions & 0 deletions test_data/jsonld_context/trials/AAS-riot.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
@prefix aas: <https://admin-shell.io/aas/3/0/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .

<https://base/something_142922d6>
rdf:type aas:AssetAdministrationShell ;
<https://admin-shell.io/aas/3/0/AssetAdministrationShell/assetInformation>
[ rdf:type aas:AssetInformation ;
<https://admin-shell.io/aas/3/0/AssetInformation/assetKind>
<https://admin-shell.io/aas/3/0/AssetKind/NotApplicable> ;
<https://admin-shell.io/aas/3/0/AssetInformation/globalAssetId>
"something_eea66fa1"
] ;
<https://admin-shell.io/aas/3/0/AssetAdministrationShell/derivedFrom>
[ rdf:type aas:Reference ;
<https://admin-shell.io/aas/3/0/Reference/keys>
[ rdf:type aas:Key ;
<https://admin-shell.io/aas/3/0/Key/type>
<https://admin-shell.io/aas/3/0/KeyTypes/AssetAdministrationShell> ;
<https://admin-shell.io/aas/3/0/Key/value>
"urn:an-example08:f3f73640"
] ;
<https://admin-shell.io/aas/3/0/Reference/type>
<https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference>
] ;
<https://admin-shell.io/aas/3/0/AssetAdministrationShell/submodels>
[ rdf:type aas:Reference ;
<https://admin-shell.io/aas/3/0/Reference/keys>
[ rdf:type aas:Key ;
<https://admin-shell.io/aas/3/0/Key/type>
<https://admin-shell.io/aas/3/0/KeyTypes/Submodel> ;
<https://admin-shell.io/aas/3/0/Key/value>
"urn:another-example03:8ad569a7"
] ;
<https://admin-shell.io/aas/3/0/Reference/type>
<https://admin-shell.io/aas/3/0/ReferenceTypes/ModelReference>
] ;
<https://admin-shell.io/aas/3/0/HasDataSpecification/embeddedDataSpecifications>
[ rdf:type aas:EmbeddedDataSpecification ;
<https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecification>
[ rdf:type aas:Reference ;
<https://admin-shell.io/aas/3/0/Reference/keys>
[ rdf:type aas:Key ;
<https://admin-shell.io/aas/3/0/Key/type>
<https://admin-shell.io/aas/3/0/KeyTypes/GlobalReference> ;
<https://admin-shell.io/aas/3/0/Key/value>
"urn:some-company06:e9f47be2"
] ;
<https://admin-shell.io/aas/3/0/Reference/type>
<https://admin-shell.io/aas/3/0/ReferenceTypes/ExternalReference>
] ;
<https://admin-shell.io/aas/3/0/EmbeddedDataSpecification/dataSpecificationContent>
[ rdf:type aas:DataSpecificationIec61360 ;
<https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName>
[ rdf:type aas:LangStringPreferredNameTypeIec61360 ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"en-UK" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"Something random in English 5b15c20d"
] ;
<https://admin-shell.io/aas/3/0/DataSpecificationIec61360/preferredName>
[ rdf:type aas:LangStringPreferredNameTypeIec61360 ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"x-Sw4u3ZDO-nJLabnE" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"something_5282e98e"
] ;
<https://admin-shell.io/aas/3/0/DataSpecificationIec61360/value>
"something_13759f45"
]
] ;
<https://admin-shell.io/aas/3/0/HasExtensions/extensions>
[ rdf:type aas:Extension ;
<https://admin-shell.io/aas/3/0/Extension/name>
"something_94548e46"
] ;
<https://admin-shell.io/aas/3/0/Identifiable/administration>
[ rdf:type aas:AdministrativeInformation ] ;
<https://admin-shell.io/aas/3/0/Identifiable/id>
"something_142922d6" ;
<https://admin-shell.io/aas/3/0/Referable/category>
"something_1dc62cea" ;
<https://admin-shell.io/aas/3/0/Referable/description>
[ rdf:type aas:LangStringTextType ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"Tvwqa-500-8EQd-y-8f5-k-vqdMn7-Ohw9-CcA628-DHKP-hPAjUZ-cnr1REUf-S8-p-9X0r-wtCI-KunG3uzI-7dGUsrTu-fY7-C3-hFN-Y-ML69DgnJ-0-Y0H-TLACBVB-Z0HRibbz-yzSf8dvR-zAn-B-6h8VjcKX-jnwR-0Z8l-ghRIZ7mo-wZG7-zXHdSIV-Oy-8dH00A6L-nJY2dA1-57o8dQ-RpxkBTbE-qBJR-M-DyGDA3U-aguRfIhj-x-XmO-1u" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"something_0c9e872c"
] ;
<https://admin-shell.io/aas/3/0/Referable/displayName>
[ rdf:type aas:LangStringNameType ;
<https://admin-shell.io/aas/3/0/AbstractLangString/language>
"de-CH" ;
<https://admin-shell.io/aas/3/0/AbstractLangString/text>
"something_1e73716d"
] ;
<https://admin-shell.io/aas/3/0/Referable/idShort>
"PiXO1wyHierj" .
143 changes: 143 additions & 0 deletions test_data/jsonld_context/trials/AAS.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"@context": "https://rawgit2.com/VladimirAlexiev/aas-core-codegen/main/test_data/jsonld_context/context-fixed.jsonld",
"@id": "https://base/something_142922d6",
"modelType": "aas:AssetAdministrationShell",
"assetInformation": {
"modelType": "aas:AssetInformation",
"assetKind": "NotApplicable",
"globalAssetId": {
"@type": "xs:string",
"@value": "something_eea66fa1"
}
},
"derivedFrom": {
"modelType": "aas:Reference",
"keys": [
{
"modelType": "aas:Key",
"type": "AssetAdministrationShell",
"value": {
"@type": "xs:string",
"@value": "urn:an-example08:f3f73640"
}
}
],
"type": "ModelReference"
},
"AssetAdministrationShell/submodels": {
"modelType": "aas:Reference",
"keys": [
{
"modelType": "aas:Key",
"type": "Submodel",
"value": {
"@type": "xs:string",
"@value": "urn:another-example03:8ad569a7"
}
}
],
"Reference/type": {
"@id": "aas:ReferenceTypes/ModelReference"
}
},
"embeddedDataSpecifications": [
{
"modelType": "aas:EmbeddedDataSpecification",
"dataSpecification": {
"modelType": "aas:Reference",
"keys": [
{
"modelType": "aas:Key",
"type": "GlobalReference",
"value": {
"@type": "xs:string",
"@value": "urn:some-company06:e9f47be2"
}
}
],
"type": "ExternalReference"
},
"dataSpecificationContent": {
"modelType": "aas:DataSpecificationIec61360",
"preferredName": [
{
"modelType": "aas:LangStringPreferredNameTypeIec61360",
"language": {
"@type": "xs:string",
"@value": "x-Sw4u3ZDO-nJLabnE"
},
"text": {
"@type": "xs:string",
"@value": "something_5282e98e"
}
},
{
"modelType": "aas:LangStringPreferredNameTypeIec61360",
"language": {
"@type": "xs:string",
"@value": "en-UK"
},
"text": {
"@type": "xs:string",
"@value": "Something random in English 5b15c20d"
}
}
],
"DataSpecificationIec61360/value": {
"@type": "xs:string",
"@value": "something_13759f45"
}
}
}
],
"extensions": [
{
"modelType": "aas:Extension",
"name": {
"@type": "xs:string",
"@value": "something_94548e46"
}
}
],
"administration": {
"modelType": "aas:AdministrativeInformation"
},
"id": {
"@type": "xs:string",
"@value": "something_142922d6"
},
"category": {
"@type": "xs:string",
"@value": "something_1dc62cea"
},
"description": [
{
"modelType": "aas:LangStringTextType",
"language": {
"@type": "xs:string",
"@value": "Tvwqa-500-8EQd-y-8f5-k-vqdMn7-Ohw9-CcA628-DHKP-hPAjUZ-cnr1REUf-S8-p-9X0r-wtCI-KunG3uzI-7dGUsrTu-fY7-C3-hFN-Y-ML69DgnJ-0-Y0H-TLACBVB-Z0HRibbz-yzSf8dvR-zAn-B-6h8VjcKX-jnwR-0Z8l-ghRIZ7mo-wZG7-zXHdSIV-Oy-8dH00A6L-nJY2dA1-57o8dQ-RpxkBTbE-qBJR-M-DyGDA3U-aguRfIhj-x-XmO-1u"
},
"text": {
"@type": "xs:string",
"@value": "something_0c9e872c"
}
}
],
"displayName": [
{
"modelType": "aas:LangStringNameType",
"language": {
"@type": "xs:string",
"@value": "de-CH"
},
"text": {
"@type": "xs:string",
"@value": "something_1e73716d"
}
}
],
"idShort": {
"@type": "xs:string",
"@value": "PiXO1wyHierj"
}
}
Loading