Endpoint: battpass-demo
Edit Request log Archive Delete
Your specially constructed endpoint is right here.
Request URL: https://translate.lab.semantic-treehouse.nl/api/19
Format: json
Output format: turtle
Response URL: https://httpbin.org/post
Headers:@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 ".."
]
]
] .
XML Schema:
JSON Schema: