[foaf-dev] SPARQL Querying CCO

Rob Stewart robstewart57 at googlemail.com
Mon May 30 19:58:54 CEST 2011

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
   { ?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

More information about the foaf-dev mailing list