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/9
Format: json
Output format: turtle
Response URL: https://httpbin.org/post
Headers:@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" ]
] .
XML Schema:
JSON Schema:
{
"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"
}