RDFUnit icon indicating copy to clipboard operation
RDFUnit copied to clipboard

Question: number of instances for a given class rule

Open m1ci opened this issue 5 years ago • 4 comments

Is it possible to implement in SHACL/RDFUnit a validaiton rule that in the graph there must be 8 instances of some class? Thanks!

m1ci avatar Sep 20 '19 11:09 m1ci

I don't think this can be done in SHACL but in the RDFUnit test case format you can put any SPARQL query and that should be easily implemented

jimkont avatar Sep 20 '19 11:09 jimkont

ok, thanks for the info. Can you please provide a pointer to some hello world example of an RDFUnit test case?

m1ci avatar Oct 16 '19 11:10 m1ci

ok, thanks for the info. Can you please provide a pointer to some hello world example of an RDFUnit test case?

Here are some example tests that includes SPARQL queries:

https://github.com/dbpedia/ontology-tracker/blob/master/guidelines/dbo.tests.shapes.ttl

gcpdev avatar Oct 18 '19 14:10 gcpdev

there are many examples in the rdfunit-manual module as well. e.g. for nif

jimkont avatar Oct 25 '19 07:10 jimkont