diff options
Diffstat (limited to 'src/ee/xml')
-rw-r--r-- | src/ee/xml/uris.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ee/xml/uris.py b/src/ee/xml/uris.py index bb961df..355df83 100644 --- a/src/ee/xml/uris.py +++ b/src/ee/xml/uris.py @@ -1,4 +1,5 @@ -from typing import Optional +import uuid +from typing import Optional, Union # Values for `..#ee-component-type` facts CAPACITOR = "http://purl.org/ee/part-type#capacitor" @@ -32,3 +33,7 @@ _FACT_KEY_PREFIX = "http://purl.org/trygvis/ee/fact-key#" def make_fact_key(name: str) -> str: return "{}{}".format(_FACT_KEY_PREFIX, name) + + +def make_schematic_part_uri(project: Union[str, uuid.UUID], schematic_reference: str) -> str: + return "http://purl.org/trygvis/ee/project/{}#{}".format(project, schematic_reference) |