Home
New Endpoint
Request Log
Archive
Edit endpoint: CO2 Emission Machine measurement
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
@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" ] ] .
XSD Schema
XSD schema for validating incoming messages
<?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
JSON schema for validating incoming messages