You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling path.n3() here returns <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/<http://www.w3.org/2004/02/skos/core#note>|<http://www.w3.org/2000/01/rdf-schema#comment> (essentially rdf:type/skos:note|rdfs:comment).
However, it the method should rather return <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/(<http://www.w3.org/2004/02/skos/core#note>|<http://www.w3.org/2000/01/rdf-schema#comment>) (thus rdf:type/(skos:note|rdfs:comment)).
The n3 method ignores all groups as it never introduces any brackets.
These path types were formatted without parentheses even if they
contained multiple elements, resulting in string representations that
did not accurately represent the path.
This change fixes the formatting so that the string representations are
enclosed in parentheses when necessary.
- Fixes <#2503>.
The n3 method for path objects returns invalid/unexpected paths for non-trivial paths.
Example:
Calling
path.n3()
here returns<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/<http://www.w3.org/2004/02/skos/core#note>|<http://www.w3.org/2000/01/rdf-schema#comment>
(essentiallyrdf:type/skos:note|rdfs:comment
).However, it the method should rather return
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>/(<http://www.w3.org/2004/02/skos/core#note>|<http://www.w3.org/2000/01/rdf-schema#comment>)
(thusrdf:type/(skos:note|rdfs:comment)
).The n3 method ignores all groups as it never introduces any brackets.
Related to #421
The text was updated successfully, but these errors were encountered: