W3C home > Mailing lists > Public > public-rdf-shapes@w3.org > February 2015

shapes as i see them

From: Michel Dumontier <michel.dumontier@gmail.com>
Date: Wed, 11 Feb 2015 16:31:56 -0800
Message-ID: <CALcEXf6zy+=HMXsRBv-aVySJ=1XJ9VOnWadvgTO8s9K6RoUXzA@mail.gmail.com>
To: "public-rdf-shapes@w3.org" <public-rdf-shapes@w3.org>
Hi,
  I've been trying to follow the vast number of correspondence in this
mailing list with minimal success, but I wanted to at least express how I
see myself using shapes. I imagined that I would first select the data of
interest, and secondly, check whether my constraints are violated.  In the
example below, I use my own syntax to select those instances of foaf:Person
that have a homepage and check whether they have exactly 1 foaf:mbox
asserted.

:myShape
  :select [
      rdf:type foaf:Person;
      foaf:homepage xsd:anyURI .
  ];
  :constraint [
      :property foaf:mbox;
      :value xsd:anyURI;
      :exactly 1
  ]
.

to what degree have you discussed having such flexibility on the selector?

m.


Michel Dumontier
Associate Professor of Medicine (Biomedical Informatics), Stanford
University
Chair, W3C Semantic Web for Health Care and the Life Sciences Interest Group
http://dumontierlab.com
Received on Thursday, 12 February 2015 00:32:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:02:41 UTC