Open bcogrel opened 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
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).
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
New working group at W3C: Data Shapes http://www.w3.org/blog/data/2014/09/30/data-shapes-working-group-launched/
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/