Re: [sdw] Temporal-relations test suite (#1238)

> @nicholascar @HolgerKnublauch could rules to test the temporal relations be written in SHACL?

I suppose they could be but I would personally find it easier to write a demonstration implementation in just SPARQL where I would calculate the `time:intervalStarts` etc. from the base data (probably all TIME object properties) and then compare the calculated results to each `xxx-tru.ttl` file by graph comparison. Likely I just don't know how easy it is to embed SPARQL in SHACL or to create custom SHACL functions...

I could implement not a query language implementation though but a tool: an RDFlib extension. There I would simple make a new RDFlib class that calculates TIME relations for given data. It would obviously use the equivalent logic to a demonstration implementation in SPARQL but would use Python code against its own graph objects (faster than translating SPARQL). It would export created properties as graphs so results could be tested with this suite. I could then use this pattern (of a dedicated class) to calculate GeoSPARQL results too in efficient Python spatial toolkit code.

-- 
GitHub Notification of comment by nicholascar
Please view or discuss this issue at https://github.com/w3c/sdw/pull/1238#issuecomment-759214113 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 13 January 2021 05:26:30 UTC