Questions tagged [shacl]

Use this tag on questions concerning the Shapes Constraint Language for RDF: SHACL.

SHACL is a language for validating RDF graphs against a set of conditions. These conditions are also expressed in the form of RDF graphs, called "shapes". Beyond validation, shapes may facilitate user interface building, code generation, and data integration.

117 questions
0
votes
1 answer

TopQuadrant Shacl Rule Engine Iterative inference

does the Shacl API Rule engine support sh:order for Rule execution as TopBraid Composer does. I tested rule ordering in TBC and it goes iteratively until it reach a fixed point. No more rule to execute. I suspect that it is considered one-pass, but…
MaatDeamon
  • 9,532
  • 9
  • 60
  • 127
0
votes
1 answer

SPARQLRule not constructing

I have a Nodeshape with a sh:SPARQLTarget and a sh:SPARQLRule. I tried to run both Target and Rule as Queries and both deliver results, but when I'm executing the Shapes with the Apache Jena SHACL Processor, it won't construct any triples. Did I do…
0
votes
1 answer

Can I inspect the shape graph

I followed the instructions on https://graphdb.ontotext.com/documentation/9.4/free/shacl-validation.html, and it worked as documented. However, once this is done, I found no way to inspect the Shape graph configured for my repository. The special…
Pierre-Antoine
  • 1,915
  • 16
  • 25
0
votes
0 answers

Using sh:maxExclusive to compare (the values of) two datatype properties

Connected to this question: I cannot use sh:lessThan with xsd:positiveInteger Indeed, I managed to make my example working by writing: sh:property [ sh:path ontology:has-age ; sh:maxExclusive 16 ; ] ; However,…
0
votes
1 answer

I cannot use sh:lessThan with xsd:positiveInteger

I have the following small ontology, with two classes ("DataSubject" and "Minor"), one property has-age from DataSubject(s) to xsd:positiveInteger, and one individual ("John", who is a DataSubject and has-age equal to 20). ontology:DataSubject …
0
votes
1 answer

SPARQL - filter among different objects

I am new to SPARQL and I have a question how I can filter the cases where the value of the object is different from a set of values collected from different objects? I want to use the query as part of the SPARQL-SHACL. I have no problem to access…
Chavi
  • 31
  • 1
  • 4
0
votes
1 answer

shacl validation error for a property which points to external file

data_file is at this url: https://schema.repronim.org/rl/activities/PHQ-9/items/phq9_8 I've written a shacl shape for the above data file. however, i get an error when i try to validate. In the above data file, the key responseOptions points to an…
Ann
  • 186
  • 4
  • 15
0
votes
2 answers

How to resolve Predicate is not allowed (closed shape) validation error

I am using https://shacl.org/playground/ I have the following Shape Graph: @prefix hr: . @prefix d: . @prefix rdfs:
James Hudson
  • 844
  • 6
  • 19
0
votes
1 answer

What is the role of CWA and OWA in semantic web applications?

What role does CWA and OWA play in semantic web applications? How important is it for those developing ontologies, writing SHACL schemas, or generating linked data to keep these concepts in mind?
Alex
  • 169
  • 1
  • 1
  • 8
0
votes
1 answer

How to validate json-ld 1.1 data graphs with SHACL?

Data Graph: (json-ld) { "@context": { "@version": 1.1, "pav": "http://purl.org/pav/", "xsd": "http://www.w3.org/2001/XMLSchema#", "skos": "http://www.w3.org/2004/02/skos/core#", "reproterms":…
Ann
  • 186
  • 4
  • 15
0
votes
1 answer

Is there any way to validate counts of different object types linked by same property?

I'm trying to validate data coming from labeling documents. Each label (or code) is an anonymous node with a specific rdf:type (and possible other attributes, e.g. :isPresent, rdfs:label, :comment). :Codes are linked to :Documents via the same…
jameshowison
  • 151
  • 8
0
votes
2 answers

Sparql Transaction

I want to insert multiple objects into a triplestore like Jena fuseki or virtuoso. In my case, the subject equal to a primary key. It is similar to a relational database. How can I make sure that the subject is only present once or is already in…
T.O
  • 3
  • 2
1 2 3 4 5 6 7
8