- From: Azhar Jassal <az.jassal@googlemail.com>
- Date: Fri, 5 Mar 2010 16:33:12 +0000
- To: public-owl-dev@w3.org
- Message-ID: <f8212dcc1003050833p41379801pff03f7c31fa621ca@mail.gmail.com>
Hi, I'm running Joseki+Pellet. I want the properties and corresponding values of a Class to be inherited down its subclasses. So for instance, with the code below, I want <urn:ITEM:1234:REV-1> to inherit the value of myitem:title from its parent.. So after inference <urn:ITEM:1234:REV-1> returns the myitem:title value of "Original Name". Please can someone show me how I should write this in Triples, as what I have below does not give me a title value for <urn:ITEM:1234:REV-1>after reasoning by Pellet.. Any help or guidance will be highly valued! @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix myitem: <http://www.myitem.com/meta/> . @prefix dc: <http://purl.org/dc/elements/1.1/> . myitem:info rdf:type rdf:Class . myitem:title rdf:type rdf:Property . myitem:title rdfs:domain myitem:info . myitem:title rdfs:range dc:title . myitem:rev rdfs:subClassOf myitem:info . <urn:ITEM:1234> rdf:type myitem:Product . <urn:ITEM:1234> dc:identifier <urn:ITEM:1234> . <urn:ITEM:1234:info> rdf:type myitem:info . <urn:ITEM:1234:info> myitem:title "Original Name" . <urn:ITEM:1234:REV-1> rdf:type myitem:rev .
Received on Monday, 8 March 2010 13:24:15 UTC