Home
New Endpoint
Request Log
Archive
Edit endpoint: battpass-demo
This is where you can edit your own little (un)semantic endpoint.
Title
Choose a distinct title for your endpoint
Input format
Choose an input format for your endpoint
JSON
XML
Output format
Choose a graph output format for your endpoint
turtle
application/rdf+xml
rdf+pretty-xml
Response URL
Where should we send the semantic data after validation and transformation?
Headers
RML
RML in Turtle (ttl) format for transforming input data to semantic triples data
@prefix rr: <http://www.w3.org/ns/r2rml#> . @prefix rml: <http://semweb.mmlab.be/ns/rml#> . @prefix ql: <http://semweb.mmlab.be/ns/ql#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix ns0: <http://ns.semantic-treehouse.nl/rml#> . @prefix batpass: <https://dpp.vocabulary-hub.eu/battpass#> . [] a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class batpass:BatteryPassport ] ; rr:predicateObjectMap [ rr:predicate batpass:identification ; rr:objectMap [ rml:reference "identification" ] ], [ rr:predicate <urn:characteristics> ; rr:objectMap [ rr:parentTriplesMap [ a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$.characteristics" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class xsd:anyComplexType ] ; rr:predicateObjectMap [ rr:predicate <urn:physicalDimension> ; rr:objectMap [ rr:parentTriplesMap [ a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$.characteristics.physicalDimension" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class xsd:anyComplexType ] ; rr:predicateObjectMap [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#physicalDimension_hasWidth> ; rr:objectMap [ rr:parentTriplesMap [ a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$.characteristics.physicalDimension.width" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class <https://dpp.vocabulary-hub.eu/battpass#Width> ] ; rr:predicateObjectMap [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#width_hasValue> ; rr:objectMap [ rml:reference "value" ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#width_hasUnit> ; rr:objectMap [ rml:reference "unit" ] ] ] ; rr:joinCondition [ rr:child "." ; rr:parent ".." ] ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#physicalDimension_hasLength> ; rr:objectMap [ rr:parentTriplesMap [ a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$.characteristics.physicalDimension.length" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class <https://dpp.vocabulary-hub.eu/battpass#Length> ] ; rr:predicateObjectMap [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#length_hasValue> ; rr:objectMap [ rml:reference "value" ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#length_hasUnit> ; rr:objectMap [ rml:reference "unit" ] ] ] ; rr:joinCondition [ rr:child "." ; rr:parent ".." ] ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#physicalDimension_hasHeight> ; rr:objectMap [ rr:parentTriplesMap [ a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$.characteristics.physicalDimension.height" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class <https://dpp.vocabulary-hub.eu/battpass#Height> ] ; rr:predicateObjectMap [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#height_hasValue> ; rr:objectMap [ rml:reference "value" ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#height_hasUnit> ; rr:objectMap [ rml:reference "unit" ] ] ] ; rr:joinCondition [ rr:child "." ; rr:parent ".." ] ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#physicalDimension_hasWeight> ; rr:objectMap [ rr:parentTriplesMap [ a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$.characteristics.physicalDimension.weight" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class <https://dpp.vocabulary-hub.eu/battpass#Weight> ] ; rr:predicateObjectMap [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#weight_hasUnit> ; rr:objectMap [ rml:reference "unit" ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#weight_hasValue> ; rr:objectMap [ rml:reference "value" ] ] ] ; rr:joinCondition [ rr:child "." ; rr:parent ".." ] ] ] ] ; rr:joinCondition [ rr:child "." ; rr:parent ".." ] ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#hasWarranty> ; rr:objectMap [ rr:parentTriplesMap [ a rr:TriplesMap ; rml:logicalSource [ rml:source "data.json" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$.characteristics.warranty" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:template "" ; rr:class <https://dpp.vocabulary-hub.eu/battpass#warranty> ] ; rr:predicateObjectMap [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#warranty_hasLifeValue> ; rr:objectMap [ rml:reference "lifeValue" ] ], [ rr:predicate <https://dpp.vocabulary-hub.eu/battpass#warranty_hasLifeUnit> ; rr:objectMap [ rml:reference "lifeUnit" ] ] ] ; rr:joinCondition [ rr:child "." ; rr:parent ".." ] ] ] ] ; rr:joinCondition [ rr:child "." ; rr:parent ".." ] ] ] .
XSD Schema
XSD schema for validating incoming messages
JSON Schema
JSON schema for validating incoming messages