Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: number of instances for a given class rule #97

Open
m1ci opened this issue Sep 20, 2019 · 4 comments
Open

Question: number of instances for a given class rule #97

m1ci opened this issue Sep 20, 2019 · 4 comments

Comments

@m1ci
Copy link

m1ci commented Sep 20, 2019

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 m1ci changed the title Question Question: number of instances for a given class rule Sep 20, 2019
@jimkont
Copy link
Member

jimkont commented Sep 20, 2019

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

@m1ci
Copy link
Author

m1ci commented Oct 16, 2019

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

@gcpdev
Copy link
Contributor

gcpdev commented Oct 18, 2019

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

@jimkont
Copy link
Member

jimkont commented Oct 25, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants