Endpoint: CO2 Emission Machine measurement
Edit Request log Unarchive Delete
Your specially constructed endpoint is right here.
Request URL: https://translate.lab.semantic-treehouse.nl/api/3
Format: xml
Output format: turtle
Response URL: https://httpbin.org/post
Headers:@base <http://mapping.the-example-event.org/> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix cn: <http://test.ontology.example.com/carbon-neutral#> .
<TriplesMap1> a rr:TriplesMap;
rml:logicalSource [
rml:source "http://www.example.com/root" ;
rml:referenceFormulation ql:XPath ;
rml:iterator "/Measurement"
] ;
rr:subjectMap [
rr:termType rr:BlankNode ;
rr:class cn:CO2EmissionMeasurement
] ;
rr:predicateObjectMap [
rr:predicate cn:scope ;
rr:objectMap [ rml:reference "scope1" ]
], [
rr:predicate cn:timestamp ;
rr:objectMap [ rml:reference "timestamp" ]
], [
rr:predicate cn:manufacturingProcess ;
rr:objectMap [ rml:reference "manufacturingProcess" ]
], [
rr:predicate cn:scope ;
rr:objectMap [ rml:reference "scope2" ]
], [
rr:predicate cn:authority ;
rr:objectMap [ rml:reference "authority" ]
], [
rr:predicate cn:manufacturingLine ;
rr:objectMap [ rml:reference "manufacturingLine" ]
] .
XML Schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:sth="https://ns.semantic-treehouse.nl/message#"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xmlns:test="test"
xmlns:cn="http://test.ontology.example.com/carbon-neutral"
xmlns:ns0="http://www.w3.org/2001/XMLSchema">
<!--===== Root element definitions =====-->
<xs:element name="Measurement" type="CO2EmissionMeasurement"/>
<!--===== ComplexType definitions =====-->
<xs:complexType name="CO2EmissionMeasurement">
<xs:sequence>
<xs:element name="authority" type="ns0:boolean"/>
<xs:element name="manufacturingProcess" type="ns0:string"/>
<xs:element name="manufacturingLine" type="ns0:string"/>
<xs:element name="timestamp" type="ns0:dateTime"/>
<xs:element name="scope1" type="ns0:float"/>
<xs:element name="scope2" type="ns0:float"/>
</xs:sequence>
</xs:complexType>
<!--===== SimpleType definitions =====-->
</xs:schema>
JSON Schema: