Skip to content

py-aas-rdf allows you to convert AAS/JSON to AAS/RDF and vice versa according to the official RDF representaiton.

License

Notifications You must be signed in to change notification settings

mhrimaz/py-aas-rdf

Repository files navigation

py-aas-rdf

py-aas-rdf allows you to convert AAS/JSON to AAS/RDF and vice versa according to the official RDF representaiton.

Installation

!pip install git+https://github.com/mhrimaz/py-aas-rdf.git@main --quiet

Python Code Example

from py_aas_rdf.models.submodel import Submodel
from py_aas_rdf.models.property import Property
import json

graph, node = Submodel(**{"id":"test", "modelType":"Submodel"}).to_rdf()
print(graph.serialize(format="turtle_custom"))

You can find in this Jupyter Notebook (https://colab.research.google.com/drive/1CwNy18p6gSNmHWd4Ng6F7z0a0XRf3WjY?usp=sharing) an example that showcase how SPARQL can be used to query the Asset Administration Shell.

About

py-aas-rdf allows you to convert AAS/JSON to AAS/RDF and vice versa according to the official RDF representaiton.

Topics

Resources

License

Stars

Watchers

Forks