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

Version/2.0.1 #6

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rml_mapping/**
AAS-Ontology*
catalog-v001.xml
1,929 changes: 1,929 additions & 0 deletions AAS-Ontology_1.1.ttl

Large diffs are not rendered by default.

1,823 changes: 1,823 additions & 0 deletions AssetAdministrationShell_Ontology_2.0.1.ttl

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="text/xml" /><Default Extension="jpg" ContentType="image/jpeg" /><Default Extension="pdf" ContentType="application/pdf" /><Override PartName="/aasx/aasx-origin" ContentType="text/plain" /></Types>

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.0.1] 2020-05-30
Version 2.0.1 of the AAS RDF Serialization


### Added

* `http://admin-shell.io/aas/2/0/Key/idType` propert for `aas:Key`
* `PolicyDecisionPoint/externalPolicyDecisionPoints`
* `http://admin-shell.io/aas/2/0/Property/value`
* `http://admin-shell.io/aas/2/0/ReferenceElement/value`
* `http://admin-shell.io/aas/2/0/SubmodelElementCollection/value`


### Changed

* Namespace: from `aas: <https://www.admin-shell.io/aas/2/0/rdf#>` to `aas: <http://admin-shell.io/aas/2/0/>`
* reorganized all attributes to their classes with the pattern NAMESPACE '/' CLASS '/' ATTRIBUTE
* `rdfs:label "some label"@en` to `rdfs:label "some label"^^xsd:string` as the label is not dependent on the English language.
* `aas:assetKind` to `http://admin-shell.io/aas/2/0/Asset/kind`
* `aas:DataSpecificationPhysicalUnit` to `http://admin-shell.io/DataSpecificationTemplates/DataSpecificationPhysicalUnit/2/0/`
* `aas:DataSpecificationIEC61360` to `http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0/DataSpecificationIEC61360`
* `aas:DataTypeIEC61360` to `http://admin-shell.io/DataSpecificationTemplates/DataSpecificationIEC61360/2/0/DataTypeIEC61360` together with all of its instances
* `aas:DataSpecificationPhysicalUnit` to `http://admin-shell.io/DataSpecificationTemplates/DataSpecificationPhysicalUnit/2/0/` together with all of its attributes
* `aas:keyElement` to `http://admin-shell.io/aas/2/0/Key/type`
* `PolicyEnforcementPoint/externalPolicyDecisionPoints` to `PolicyEnforcementPoint/externalPolicyEnforcementPoint`
* `aas:propertyValueId` to `http://admin-shell.io/aas/2/0/Property/valueId`
* `aas:isCaseOf rdfs:domain aas:Reference .` to `aas:isCaseOf rdfs:range aas:Reference .`
* `aas:relationsshipFirst` to `http://admin-shell.io/aas/2/0/RelationshipElement/first`
* `aas:relationsshipSecond` to `http://admin-shell.io/aas/2/0/RelationshipElement/second`
* `aas:propertyCategory` to `http://admin-shell.io/aas/2/0/Property/category`


### Removed

* `owl:disjointWith` annotations as their added value is limited and the potential to create conflicts is high.
* `aas:describes` is not in the AAS Meta Model anymore.
* Class `aas:Category` does not exist in the AAS Meta Model.
* `aas:sourceOfDefinition` and `aas:definition`
* `aas:inAccordanceWith`
* `aas:embeddedDataSpecification`
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Repository containing the developing of the RAMI vocabulary. This semantically e
on the Plattform Industrie 4.0 specification [Details of the Asset Administration Shell - Part 1](https://www.plattform-i40.de/PI40/Redaktion/DE/Downloads/Publikation/2018-verwaltungsschale-im-detail.html).
This repository provides an RDF version of the specification,

The ontology itself is contained in [rami.ttl](rami.ttl). You can find a visualization of the latest version can be created using the
The ontology itself is contained in [AAS-Ontology_2.0.ttl](AAS-Ontology_2.0.ttl). You can find a visualization of the latest version can be created using the
[WebVOwl API](http://www.visualdataweb.de/webvowl/\#iri=https://raw.githubusercontent.com/i40-Tools/RAMIOntology/master/rami.ttl).


Expand Down
68 changes: 68 additions & 0 deletions examples/AAS_Reference_Example.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@prefix : <https://admin-shell.io/aas/1/1/rdf#> .
@prefix aas: <https://admin-shell.io/aas/1/1/rdf#> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dul: <http://www.loa-cnr.it/ontologies/DUL.owl#> .
@prefix foaf: <http://xmlns.com/foaf/spec/> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix om: <http://www.wurvoc.org/vocabularies/om-1.8/> .
@prefix obda: <https://w3id.org/obda/vocabulary#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#> .
@prefix sto: <https://w3id.org/i40/sto#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


# 1) Reference with KeyElements
<http://customer.com/aas/9175_7013_7091_9168> rdf:type aas:AssetAdministrationShell ;

aas:identification <http://customer.com/aas/9175_7013_7091_9168> ;

aas:asset [ # 1a) asset
a aas:Reference ;
aas:key [
a aas:Key ;
aas:index "0"^^xsd:integer ;
aas:type aas:ASSET_IDENTIFIABLE_ELEMENT ;
aas:local "true"^^xsd:boolean ;
aas:value <http://customer.com/assets/KHBVZJSQKIY> ;
aas:idType aas:URI_IDENTIFIER_TYPE ;
] ;
] ;
.


# 2) direct reference, different asset and assetRef properties
<http://customer.com/aas/9175_7013_7091_9168> rdf:type aas:AssetAdministrationShell ;

aas:identification <http://customer.com/aas/9175_7013_7091_9168> ;

aas:assetRef [ # 1b) assetRef
a aas:Reference ;
aas:key [
a aas:Key ;
aas:index "0"^^xsd:integer ;
aas:type aas:ASSET_IDENTIFIABLE_ELEMENT ;
aas:local "true"^^xsd:boolean ;
aas:value <http://customer.com/assets/KHBVZJSQKIY> ;
aas:idType aas:URI_IDENTIFIER_TYPE ;
] ;
] ;

aas:asset <http://customer.com/assets/KHBVZJSQKIY> ; #1b) asset linking to Asset entity directly
.


<http://customer.com/assets/KHBVZJSQKIY> rdf:type aas:Asset ;
aas:identification <http://customer.com/assets/KHBVZJSQKIY> ;
# ...
.
11 changes: 11 additions & 0 deletions examples/AAS_Reference_shortExample.nt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<http://customer.com/AAS_9175_7013_7091_9168> <http://www.w3.org/1999/02/22-rdf-syntax-ns#rdfs:type> <https://admin-shell.io/aas/1/1/rdf#AssetAdministrationShell> .
<http://customer.com/AAS_9175_7013_7091_9168> <https://admin-shell.io/aas/1/1/rdf#asset> _:AssetRef .
_:AssetRef <http://www.w3.org/1999/02/22-rdf-syntax-ns#rdfs:type> <https://admin-shell.io/aas/1/1/rdf#Reference> .
_:AssetRef <https://admin-shell.io/aas/1/1/rdf#key> _:AssetKey .
_:AssetKey <http://www.w3.org/1999/02/22-rdf-syntax-ns#rdfs:type> <https://admin-shell.io/aas/1/1/rdf#Key> .
_:AssetKey <https://admin-shell.io/aas/1/1/rdf#index> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:AssetKey <https://admin-shell.io/aas/1/1/rdf#aas:type> <https://admin-shell.io/aas/1/1/rdf#ASSET_IDENTIFIABLE_ELEMENT> .
_:AssetKey <https://admin-shell.io/aas/1/1/rdf#local> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
_:AssetKey <https://admin-shell.io/aas/1/1/rdf#value> <http://customer.com/asset_KHBVZJSQKIY> .
_:AssetKey <https://admin-shell.io/aas/1/1/rdf#idType> <https://admin-shell.io/aas/1/1/rdf#URI_IDENTIFIER_TYPE> .
<http://customer.com/asset_KHBVZJSQKIY> <http://www.w3.org/1999/02/22-rdf-syntax-ns#rdfs:type> <https://admin-shell.io/aas/1/1/rdf#Asset> .
42 changes: 42 additions & 0 deletions examples/AAS_Reference_shortExample.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@prefix : <https://admin-shell.io/aas/1/1/rdf#> .
@prefix aas: <https://admin-shell.io/aas/1/1/rdf#> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dul: <http://www.loa-cnr.it/ontologies/DUL.owl#> .
@prefix foaf: <http://xmlns.com/foaf/spec/> .
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix om: <http://www.wurvoc.org/vocabularies/om-1.8/> .
@prefix obda: <https://w3id.org/obda/vocabulary#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ssn: <http://purl.oclc.org/NET/ssnx/ssn#> .
@prefix sto: <https://w3id.org/i40/sto#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


<http://customer.com/aas/9175_7013_7091_9168> rdf:type aas:AssetAdministrationShell ;
aas:identification <http://customer.com/aas/9175_7013_7091_9168> ;
aas:asset [
a aas:Reference ;
aas:key [
a aas:Key ;
aas:index "0"^^xsd:integer ;
aas:type aas:ASSET_IDENTIFIABLE_ELEMENT ;
aas:local "true"^^xsd:boolean ;
aas:value <http://customer.com/assets/KHBVZJSQKIY> ;
aas:idType aas:URI_IDENTIFIER_TYPE ;
] ;
] ;
.

<http://customer.com/assets/KHBVZJSQKIY> rdf:type aas:Asset ;
aas:identification <http://customer.com/assets/KHBVZJSQKIY> ;
.
14 changes: 14 additions & 0 deletions examples/AssetAdministrationShell_Example.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<http://customer.com/aas/9175_7013_7091_9168>
rdf:type aas:AssetAdministrationShell ; (1)
aas:idShort "ExampleMotor"^^xsd:string ;
rdfs:label "ExampleMotor"^^xsd:string ; (2)
aas:description "A very short description of the AAS instance.@en" ;
rdfs:comment "A very short description of the AAS instance."^^xsd:string ; (3)
aas:asset [ ... aas:value <http://customer.com/assets/KHBVZJSQKIY> ; ... ] ;
aas:submodel [ ... aas:value <http://i40.customer.com/type/1/1/F13E8576F6488342> ; ... ] ;
aas:submodel [ ... aas:value <http://i40.customer.com/type/1/1/7A7104BDAB57E184> ; ... ] ;
aas:submodel [... aas:value <http://i40.customer.com/instance/1/1/AC69B1CB44F07935>; ...];
aas:submodel [ ... aas:value <http://i40.customer.com/type/1/1/1A7B62B529F19152> ; ... ] ;
aas:identification <http://customer.com/aas/9175_7013_7091_9168> ;
aas:category "CONSTANT"^^xsd:string .

24 changes: 24 additions & 0 deletions examples/Asset_Example.nt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<http://customer.com/Asset:KHBVZJSQKIY> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://admin-shell.io/aas/1/1/rdf#Asset>.

<http://customer.com/Asset:KHBVZJSQKIY> <https://admin-shell.io/aas/1/1/rdf#idShort> "ServoDCMotor"^^<http://www.w3.org/2001/XMLSchema#string>.
<http://customer.com/Asset:KHBVZJSQKIY> <http://www.w3.org/2000/01/rdf-schema#label> "ServoDCMotor"^^<http://www.w3.org/2001/XMLSchema#string>.
<http://customer.com/Asset:KHBVZJSQKIY> <https://admin-shell.io/aas/1/1/rdf#identification> <http://customer.com/Asset:KHBVZJSQKIY>.


<http://customer.com/Asset:KHBVZJSQKIY> <https://admin-shell.io/aas/1/1/rdf#assetIdentificationModel> _:SubmodelReference

_:SubmodelReference <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://admin-shell.io/aas/1/1/rdf#Reference> .
_:SubmodelReference <https://admin-shell.io/aas/1/1/rdf#key> _:SubmodelKey .
_:SubmodelKey <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://admin-shell.io/aas/1/1/rdf#Key> .
_:SubmodelKey <https://admin-shell.io/aas/1/1/rdf#index> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
_:SubmodelKey <https://admin-shell.io/aas/1/1/rdf#aas:type> <https://admin-shell.io/aas/1/1/rdf#SUBMODEL_IDENTIFIABLE_ELEMENT> .
_:SubmodelKey <https://admin-shell.io/aas/1/1/rdf#local> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
_:SubmodelKey <https://admin-shell.io/aas/1/1/rdf#value> <http://i40.customer.com/Submodel:F13E8576F6488342> .
_:SubmodelKey <https://admin-shell.io/aas/1/1/rdf#idType> <https://admin-shell.io/aas/1/1/rdf#URI_IDENTIFIER_TYPE> .




<http://customer.com/Asset:KHBVZJSQKIY> <https://admin-shell.io/aas/1/1/rdf#hasKind> <https://admin-shell.io/aas/1/1/rdf#Instance>.

<http://i40.customer.com/Submodel:F13E8576F6488342> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://admin-shell.io/aas/1/1/rdf#Submodel>.
15 changes: 15 additions & 0 deletions examples/Asset_Example.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<http://customer.com/assets/KHBVZJSQKIY> rdf:type aas:Asset ;
aas:idShort "ServoDCMotor"^^xsd:string ;
rdfs:label "ServoDCMotor"^^xsd:string ;
aas:identification> <http://customer.com/assets/KHBVZJSQKIY>.
aas:assetIdentificationModel [
rdf:type aas:Reference ;
aas:key [
rdf:type aas:Key ;
aas:index "0"^^xsd:integer ;
aas:type aas:SUBMODEL_IDENTIFIABLE_ELEMENT ;
aas:local "true"^^xsd:boolean ;
aas:value <http://i40.customer.com/type/1/1/F13E8576F6488342> ;
aas:idType aas:URI_IDENTIFIER_TYPE .
] ;
aas:hasKind aas:Instance .
Loading