Wow! I could have saved so much time, had I asked earlier. The W3C SHACL spec example misses the sh:prefixes statement in section 5.2.1 ( https://www.w3.org/TR/shacl/#sparql-prefixes).
Now I can go back and do it the way I thought it should work! Parenthetically, I suppose there might be some rationale behind it, but it seems very cumbersome to have to declare prefixes in three places: @prefix at the top of the file sh:prefixes in the Ontology declaration sh:prefixes in the shape definition. ...and each with a slightly different syntax: @prefix owl: <http://www.w3.org/2002/07/owl#> . sh:namespace "http://www.w3.org/2002/07/owl#"^^xsd:anyURI ; sh:prefixes <http://www.w3.org/2002/07/owl> ; This is really a comment to W3C of course, not TopQuadrant. Thanks for your speedy reply! Steve On Mon, Mar 22, 2021 at 2:15 PM Irene Polikoff <[email protected]> wrote: > <http://data.ashrae.org/standard223/1.0/inference/owl-subset> > a owl:Ontology ; > owl:imports <http://datashapes.org/dash> ; > owl:versionInfo "Created with TopBraid Composer" ; > sh:prefixes [sh:declare [ > sh:namespace "http://www.w3.org/2002/07/owl#"^^xsd:anyURI ; > sh:prefix "owl" ; > ] ;]; > > On Mar 22, 2021, at 4:40 PM, Steve Ray <[email protected]> wrote: > > I have been working around this problem by avoiding any prefixes when > defining a shape with SPARQL, but this still bugs me. Attached are two tiny > files, epp1.shapes.ttl and epp2.shapes.ttl. > > I'm running the SHACL reasoner. > epp1 works - it does not use any prefixes inside the shape. > epp2 is identical to epp1, except it declares the owl: prefix in the > shape. > > TBC complains that it cannot resolve owl:SymmetricProperty. > > I have tried following the documentation for this, but clearly I'm getting > something wrong. What am I missing? > > Steve > > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/CAGUep85Rf1yk3YVsLV3ihJjso7w5uF%2BBGqFOSpPWybBCuGw6nQ%40mail.gmail.com > <https://groups.google.com/d/msgid/topbraid-users/CAGUep85Rf1yk3YVsLV3ihJjso7w5uF%2BBGqFOSpPWybBCuGw6nQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > <epp1.shapes.ttl><epp2.shapes.ttl> > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/topbraid-users/159328BE-4286-447E-BDA7-0827C564A2E3%40topquadrant.com > <https://groups.google.com/d/msgid/topbraid-users/159328BE-4286-447E-BDA7-0827C564A2E3%40topquadrant.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/CAGUep86UgMuSQVUSvOQLGrSfeWyiArtCHuvkyijEtHiYgDpfDA%40mail.gmail.com.
