oldm / OldMan

Python OLDM (Object Linked Data Mapper)
Other
15 stars 3 forks source link

Constraint vocabularies #9

Open bcogrel opened 10 years ago

bcogrel commented 10 years ago

Hydra: http://hydra-cg.com/spec/latest/core/

Resource Shapes 2.0: http://www.w3.org/Submission/shapes/ (also see http://www.w3.org/Submission/2014/01/Comment/)

SPIN constraints and templates: http://spinrdf.org/spin.html#spin-constraints SPIN-based constraint ontology: http://semwebquality.org/ontologies/dq-constraints

Dublin Core Description Set Profiles: http://dublincore.org/documents/dc-dsp/

bcogrel commented 10 years ago

CubicWeb-specific constraints. RQL-Based constraints are common so SPIN should be seriously considered.

Equivalent of RQL keywords TODAY and NOW:

now() is a SPARQL function. From now(), today information can be extracted http://answers.semanticweb.com/questions/15434/getting-days-of-the-week-from-datetime-in-sparql

bcogrel commented 10 years ago

String size: STRLEN SPARQL function http://www.w3.org/TR/sparql11-query/#func-strlen .

For string max size, a SPIN template should be used (may already exist).

bcogrel commented 10 years ago

A new promising language, under specification: ShEX Shape Expressions https://www.w3.org/2001/sw/wiki/ShEx .

"ShEX, or Shape Expressions, is a language for expressing constraints on RDF graphs. It includes the cardinality constraints from OSLC Resource Shapes and Dublin Core Description Set Profiles as well as logical connectives for disjuntion and polymorphism. It is intended to:

Indicated by Markus Lanthaler: http://lists.w3.org/Archives/Public/public-hydra/2014Jun/0099.html

bcogrel commented 9 years ago

New working group at W3C: Data Shapes http://www.w3.org/blog/data/2014/09/30/data-shapes-working-group-launched/

bcogrel commented 9 years ago

In Symfony: http://symfony.com/doc/current/book/validation.html#supported-constraints