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
@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#> . [] rml:logicalSource [ rml:source "http://www.example.com/root" ; rml:referenceFormulation ql:JSONPath ; rml:iterator "$" ] ; rr:subjectMap [ rr:termType rr:BlankNode ; rr:class cn:CO2EmissionMeasurement ] ; rr:predicateObjectMap [ rr:predicate cn:scope ; rr:objectMap [ rml:reference "scope1" ] ], [ rr:predicate <https://w3id.org/saref#hasValue> ; rr:objectMap [ rml:reference "hasValue" ] ], [ rr:predicate <https://w3id.org/saref#hasTimestamp> ; rr:objectMap [ rml:reference "hasTimestamp" ] ], [ rr:predicate cn:scope ; rr:objectMap [ rml:reference "scope2" ] ] .
XSD Schema
XSD schema for validating incoming messages
JSON Schema
JSON schema for validating incoming messages
{ "id": "test#Measurement", "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "CO2 Emission Machine measurement version 0.9", "description": "Generated by Semantic Treehouse on 2023-02-14T11:30:54+01:00", "required": [ "hasValue", "scope1", "scope2" ], "additionalProperties": false, "properties": { "hasValue": { "type": "object" }, "hasTimestamp": { "type": "string", "format": "date-time" }, "scope1": { "type": "number" }, "scope2": { "type": "number" } }, "type": "object" }