mhrimaz / py-aas-rdf

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"))

About

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

License:MIT License


Languages

Language:Python 98.9%Language:Makefile 1.1%