Hi Matt,
Hello-
I just downloaded TBC 7.0 and I've started experimenting with active data shapes, and so far it seems that it will be very useful for us.
I was experimenting with a property shape as the focusNode and as expected there were attributes for all the SHACL and DASH constraint component properties that I could think of at the time, except for sh:class. I see attributes for the DASH properties hasValueWithClass, rootClass, and uniqueValueForClass, but nothing in the autocomplete dropdown looks like it corresponds to sh:class. For the sake of it I tried focusNode.class in the Script Editor and got void unexpectedly.
This looks like a simple omission. It will show up once you add a triple
sh:PropertyShape
sh:property sh:ClassConstraintComponent-class ;
and the values will be correctly typed as rdfs_Class instances.
I have not yet checked whether this would have any unintended side effects, but have recorded a ticket to get this in for a future version. You could either add this locally, or use propertyShape.value(sh.class) or, as always, graph.triples(propertyShape, sh.class, null)
Holger
Am I missing it or is it missing?
Thanks.
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/602a674e-9f68-4b7a-aa52-d3d26343be62n%40googlegroups.com.
/**
* (No sh:description found)
* The RDF path is (<http://www.w3.org/2004/02/skos/core#broader>)*/<http://www.w3.org/2004/02/skos/core#topConceptOf>
* @returns {NamedNode}
*/
get unnamedPathProperty() {
return this.value('(<http://www.w3.org/2004/02/skos/core#broader>)*/<http://www.w3.org/2004/02/skos/core#topConceptOf>', NamedNode);
}
set unnamedPathProperty(value) {
throw 'Property unnamedPathProperty is read-only because it is backed by a SHACL path expression.';
}
Wow, that's quite a case. Fixed for 7.0.1.
Meanwhile, I guess sh:deactivated true should bypass such
properties.
Thanks for the report
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/b5b36aff-04c5-4525-8849-d064338b4459n%40googlegroups.com.