Giter Club home page Giter Club logo

Comments (5)

DylanVanAssche avatar DylanVanAssche commented on June 29, 2024

This construct you mention is to enforce that any of these options is picked (so minCount == 1) and also that you don't put multiple of these options (maxCount == 1).

allow no such thing for subject maps and object maps (and arguably graph maps)

I cannot follow here. Each of these maps must have exactly one of these options right? A subject map must have a template/constant/reference/... right?
You can enforce it more strict in the specific maps though if needed.

from rml-core.

DylanVanAssche avatar DylanVanAssche commented on June 29, 2024

Rethinking this issue: is this when you have rml:termType rml:BlankNode without a template?
If that's the only 'exception' to the rule, we should maybe define this restriction:

IF termType == BlankNode
  minCount = 0
ELSE
  minCount = 1

?

from rml-core.

chrdebru avatar chrdebru commented on June 29, 2024

Yes, but what if no rml:termType is provided? I'm also thinking about the Gather Maps, and it is difficult (impossible?) to "overwrite" shapes in SHACL. My approach is more: if no rml:template, rml:reference, and rml:constant, then the rml:termType is assumed to be rml:BlankNode. This rule would work with predicate maps as well as the inferred term type blank node violates the rml:termType rr:IRI constraint.

from rml-core.

DylanVanAssche avatar DylanVanAssche commented on June 29, 2024

Yes, but what if no rml:termType is provided?

There should be a default which should be used. For SubjectMaps this is IRI. It will be a 'fun' job to actually check this in SHACL shapes...

and it is difficult (impossible?) to "overwrite" shapes in SHACL.

I'm not sure how you can overwrite things I'm afraid... It is purely an AND/OR/XOR story AFAIK. Correct me if I'm wrong.

from rml-core.

chrdebru avatar chrdebru commented on June 29, 2024

I would argue that the default when no constant, template, or reference is provided should be blank nodes. That's the only thing that you can generate based on the iteration. Defaults can be "inferred" once you have one of them.

from rml-core.

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.