Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 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 basyx/aas/adapter/_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
implementation to the respective string and vice versa.
"""
import os
import pathlib
from typing import BinaryIO, Dict, IO, Type, Union

from basyx.aas import model
Expand All @@ -18,6 +19,8 @@
Path = Union[str, bytes, os.PathLike]
PathOrBinaryIO = Union[Path, BinaryIO]
PathOrIO = Union[Path, IO] # IO is TextIO or BinaryIO
PathOrIOGraph = Union[str, pathlib.PurePath, IO[bytes]]


# XML Namespace definition
XML_NS_MAP = {"aas": "https://admin-shell.io/aas/3/0"}
Expand Down
10 changes: 10 additions & 0 deletions basyx/aas/adapter/rdf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
.. _adapter.rdf.__init__:

This package contains functionality for serialization and deserialization of BaSyx Python SDK objects into RDF.

:ref:`rdf_serialization <adapter.xml.rdf_serialization>`: The module offers a function to write an
:class:`ObjectStore <basyx.aas.model.provider.AbstractObjectStore>` to a given file.
"""

from .rdf_serialization import AASToRDFEncoder, object_store_to_rdf, write_aas_rdf_file
Loading