Giter Club home page Giter Club logo

Comments (4)

tpluscode avatar tpluscode commented on September 22, 2024 1

From that same paragraph, the next sentence:

A shape has at most one value for sh:path

I thought this meant that it's fine without sh:path. For comparison, here's the same example running Top Quadrant's engine: https://s.zazuko.com/2KuNiJa

I would like to hear @HolgerKnublauch's opinon. From what I understand, the shapes from the sh:or are merged in runtime, forming a valid property shape effectively. Parse time would too early to determine correctness of such a shape

Maybe sh:or should be on the node shape by removing the sh:property (line 25) and its closing ]?

This my actually work. I always forget that skipping sh:property altogether is also valid in some scenarios

from jena.

afs avatar afs commented on September 22, 2024

https://www.w3.org/TR/shacl/#property-shapes

A property shape is a shape in the shapes graph that is the subject of a triple that has sh:path as its predicate.

A property shape must have an sh:path.

The stacktrace is at parse time. Line 25 (which should be indented?) has sh:property with no sh:path. The sh:or, each with a sh:path does not fulfil the definition.

Maybe sh:or should be on the node shape by removing the sh:property (line 25) and its closing ]?

from jena.

afs avatar afs commented on September 22, 2024

That text isn't wrong but it does not override or modify the previous text. "Exactly one" would be better. Elsewhere it says

Each value of sh:property in a shape must be a well-formed property shape.

If the code walks from the target start point it is encountered as a node shape. I can't see text that then makes the sh:or apply because it is not attached to the node shape (obviously, the code is interpreting sh:property with no sh:path as having no path step).

Jena parses all the shapes, not just reachable ones from targets, or ones encountered while validating the data.of the data.

from jena.

afs avatar afs commented on September 22, 2024

SEMICeu/DCAT-AP has made changes.

from jena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.