oeg-upm / helio-materialiser

Helio materialiser allows to generate RDF from heterogeneous sources of data. The generated RDF can be accessed (retrieving the dataset, accessing a resource, or solving a SPARQL query) or it can be injected automatically by Helio into an existing triple store. Furthermore, the RDF can be generated synchronously under demand, or asynchronously with a timer.
https://oeg-upm.github.io/helio/
Apache License 2.0
1 stars 0 forks source link

Check the subjects generated with this mapping and try to fix it #8

Open AndreaCimminoArriaga opened 3 years ago

AndreaCimminoArriaga commented 3 years ago

{ "datasources": [ { "id": "OccupantBehavior Datasource", "refresh": 5000, "handler": { "type": "JsonHandler", "iterator": "$" }, "provider": { "type": "FileProvider", "file": "./src/test/resources/helio-tests/helio-1-data.json" } } ], "resource_rules": [ { "id": "Building", "datasource_ids": [ "OccupantBehavior Datasource" ], "subject": "https://www.data.bimerr.occupancy.es/resource/[REPLACE(CURRENT_TIMESTAMP(),' ','_')]/{$.Buildings.Building._ID}", "properties": [ { "predicate": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", "object": "https://bimerr.iot.linkeddata.es/def/building#Building", "is_literal": "False" }, { "predicate": "https://bimerr.iot.linkeddata.es/def/building#description", "object": "{$.Buildings.Building.Description}", "is_literal": "True", "datatype": "http://www.w3.org/2001/XMLSchema#string" }, { "predicate": "https://w3id.org/def/saref4bldg#hasSpace", "object": "https://www.data.bimerr.occupancy.es/resource/{$.Buildings.Building.Spaces.Space._ID}", "is_literal": "False" } ] } ] }

AndreaCimminoArriaga commented 3 years ago

Generates

https://www.data.bimerr.occupancy.es/resource/2020-09-03_17:27:48.275/'Building_1' a https://bimerr.iot.linkeddata.es/def/building#Building ; https://bimerr.iot.linkeddata.es/def/building#description "A office building which contains 12 space and 16 staffs."^^http://www.w3.org/2001/XMLSchema#string ; https://w3id.org/def/saref4bldg#hasSpace https://www.data.bimerr.occupancy.es/resource/S2_Researcher_Office .