Re: [foaf-dev] SPARQL Querying CCO
Rob Stewart <robstewart57-gM/[email protected]> Mon, 30 May 2011 18:58:54 +0100
| Newsgroups | gmane.comp.web.rdfweb |
|---|---|
| Message-ID | <[email protected]> |
Hi Bob,
Thanks. OK, would it be possible then to generate some RDF, so as we
can weight foaf:knows. e.g. So that the following SPARQL query will
give us the weights:
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX cco: <http://purl.org/ontology/cco/core#>
PREFIX wo: <http://purl.org/ontology/wo/core#>
PREFIX ex: <http://example.org/>
SELECT ?name ?friendname ?wv
WHERE
{ ?x foaf:name ?name .
?x cco:habit ?h .
?h cco:topic ?otherPerson .
?h cco:characteristic foaf:knows .
?otherPerson foaf:name ?friendname .
?h wo:weight ?w .
?w wo:weight_value ?wv . }
Or is WO: truly only to represent weighted interests (all of the
examples on [1] are related to interests).
1 - http://smiy.sourceforge.net/cco/spec/cognitivecharacteristics.html
--
Rob Stewart