aboutsummaryrefslogtreecommitdiff
path: root/src/ee/xml/uris.py
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-15 12:01:17 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-15 12:01:17 +0200
commitbd33b778f17e5751a14160baeae6cdcd41ce1ca7 (patch)
tree93b49f405703991bd54624f77316e64ff8e86d1a /src/ee/xml/uris.py
parentbab23db8bb13832ea326af5e1a847640ccb04cce (diff)
downloadee-python-bd33b778f17e5751a14160baeae6cdcd41ce1ca7.tar.gz
ee-python-bd33b778f17e5751a14160baeae6cdcd41ce1ca7.tar.bz2
ee-python-bd33b778f17e5751a14160baeae6cdcd41ce1ca7.tar.xz
ee-python-bd33b778f17e5751a14160baeae6cdcd41ce1ca7.zip
datasheet: wip
Diffstat (limited to 'src/ee/xml/uris.py')
-rw-r--r--src/ee/xml/uris.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ee/xml/uris.py b/src/ee/xml/uris.py
index 97c3fa3..7095da3 100644
--- a/src/ee/xml/uris.py
+++ b/src/ee/xml/uris.py
@@ -16,6 +16,10 @@ MOUNTING_HOLE = "http://purl.org/ee/part-type#mounting-hole"
_DIGIKEY_FACT_KEY_PREFIX = "http://purl.org/ee/digikey-fact-key#"
+def make_link_rel(cls):
+ return "http://purl.org/ee/link-rel#{}".format(cls)
+
+
def make_digikey_fact_key(key: int) -> str:
return _DIGIKEY_FACT_KEY_PREFIX + str(key)