Commit 6ba3b0e
committed
feat: initial support for fetching embedded SHACL info in OWL
Support fetching domain, range and cardinality information from
vocabularies containing a SHACL graph. The queries are different
depending on whether it is an object property or a datatype property.
Where the information isn't available, there will be empty cells in the
report.
There is also support for value node constraints for certain patterns of
expressing ranges for IRIs with `sh:hasValue`, such as SKOS
vocabularies, used for example in recent versions of the eProcurement
ontology (ePO):
```ttl
sh:nodeKind sh:IRI ;
sh:node [
rdf:type sh:NodeShape ;
sh:property [
sh:path skos:inScheme ;
sh:hasValue atold:language ;
] ;
] .
```
Currently, this feature is NOT for capturing changes in the domain,
range and cardinality, and is only for the case of ADDED instances of
such resources, not their modifications.
The information won't show up for individual property changes on the
resources (added/updated/changed/moved labels and the whole shebang).
The queries in those cases will differ between modification types, and
there is the question of how to fit all of the information in an
already-crowded table. Work will continue on how best to approach this.
P.S: There are nested OPTIONALs as the graph may not exist, so
performance may be affected, though hopefully not by too much. If that
becomes a concern, we can turn these over onto a new template, where a
SHACL graph would be made mandatory.1 parent 84be741 commit 6ba3b0e
1 file changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
146 | 184 | | |
147 | 185 | | |
0 commit comments