diff --git a/rml_noaka/attributes-map.rml.ttl b/rml_noaka/attributes-map.rml.ttl new file mode 100644 index 0000000..330f5aa --- /dev/null +++ b/rml_noaka/attributes-map.rml.ttl @@ -0,0 +1,50 @@ +@prefix rml: . +@prefix rr: . +@prefix ql: . +@prefix rdf: . +@prefix : . +@prefix schema: . +@prefix commonlib: . +@prefix dexpi: . +@prefix asset: . +@prefix dbo: . +@prefix imf: . +@prefix owl: . + +:AttributesMap a rr:TriplesMap; + rml:logicalSource [ + rml:source "pandid.xml"; + rml:referenceFormulation ql:XPath; + rml:iterator "//GenericAttributes/GenericAttribute" + ]. + + +:AttributesMap rr:subjectMap [ + rr:template "https://assetid.equinor.com/plantx#{../../@ID}" +]. + +:AttributesMap rr:predicateObjectMap [ + rr:predicateMap [ + rml:reference "@AttributeURI"; + ]; + rr:objectMap [ + rml:reference "@Value" ; + rr:termType rr:Literal + ], + [ + rml:reference "@ValueURI"; + rr:termType rr:IRI + ]; + +]. + +:AttributesMap rr:predicateObjectMap [ + rr:predicateMap [ + rr:template "https://rdf.equinor.com/dexpi#{@Name}"; + ]; + rr:objectMap [ + rml:reference "@Value" ; + rr:termType rr:Literal + ]; + +].