- From: Nathan <nathan@webr3.org>
- Date: Fri, 24 Sep 2010 13:11:26 +0100
- To: Toby Inkster <tai@g5n.co.uk>
- CC: Bob Ferris <zazi@elbklang.net>, semantic-web@w3.org
Toby Inkster wrote: > On Fri, 24 Sep 2010 01:12:45 +0200 > Bob Ferris <zazi@elbklang.net> wrote: > >> However, if I have for example three "shortcut relations" (e.g. a >> skill, an expertise and and interest) in a graph, which have all the >> same topic, I can't match them to the related cognitive >> characteristic statement (as you can also see in the original >> example[1]). > > What's wrong with this? > > ex:APerson > cco:skill <http://dbpedia.org/resource/Football_(soccer)> . > > ex:CC1 > a cco:CognitiveCharacteristic ; > cco:agent ex:APerson ; #added this > cco:characteristic cco:skill ; #added this > cco:topic <http://dbpedia.org/resource/Football_(soccer)>; > wo:weight [ > a wo:Weight ; > wo:weight_value 6.0 ; > wo:scale ex:AScale > ]; > cco:activity > <http://sw.opencyc.org/concept/Mx4rwJRiEpwpEbGdrcN5Y29ycA> . > > The following N3 rule would allow you to infer the shortcut property > from the longer form: > > { > ?cc > cco:agent ?s ; > cco:characteristic ?p ; > cco:topic ?o . > } > => { ?s ?p ?o . } . nice, +1 for Toby's approach from me, and likewise using n3 for all you're named graph needs.
Received on Friday, 24 September 2010 12:12:41 UTC