W3C home > Mailing lists > Public > semantic-web@w3.org > August 2011

SPARQL queries property or class from a schema

From: Jitao Yang <jitao.yang@gmail.com>
Date: Fri, 12 Aug 2011 18:36:58 +0200
Message-ID: <CALDmnw_P1O5N4YryUHuzNFhv81PfN3uZX6UdFE1P=WAp5-yS3A@mail.gmail.com>
To: semantic-web@w3.org
Dear all,

suppose we have DATA:

@prefix foaf:  <http://xmlns.com/foaf/0.1/> .

_:a  foaf:name   "Johnny Lee Outlaw" .
_:a  foaf:mbox   <mailto:jlow@example.com> .
_:b  foaf:name   "Peter Goodguy" .
_:b  foaf:mbox   <mailto:peter@example.org> .
_:c  foaf:mbox   <mailto:carol@example.org> .

can we write a SPARQL query like:

PREFIX foaf:   <http://xmlns.com/foaf/0.1/>
SELECT *?property*

             ?x  foaf:*?property*  "Peter Goodguy".

if we can not, can we write an equivalent SPARQL query? Namely, can we
decompose schema and Class(or Property) in SPARQL query?

Received on Friday, 12 August 2011 16:41:04 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 08:45:25 UTC