I'm trying to create ontology for store with Protege 4.3. Everything goes well, but I stuck on something.
I have two classes - Products and Stores. Currently they have object property hasProduct, which has domain Stores and range Products. Let's say that store "Tempo Sport Shop" hasProduct "Brown slippers". But there is a store named "Sport Depot" which has the same product but with different price.
I'm curious how can I put a different price for this product in different stores? I want those Brown Slippers to be 33.00$ in Sport Depot and the exactly same product to cost 41.00$ in Tempo Sport Shop.
Here's the ontology:
@prefix : <http://www.semanticweb.org/yuriy/ontologies/2014/0/untitled-ontology-23#> .
<http://www.semanticweb.org/yuriy/ontologies/2014/0/untitled-ontology-23> rdf:type owl:Ontology .
:hasBrand rdf:type owl:ObjectProperty ;
rdfs:range :Brands ;
rdfs:domain :Products .
:hasProduct rdf:type owl:ObjectProperty ;
rdfs:range :Products ;
rdfs:domain :Stores .
:Brands rdf:type owl:Class .
:Products rdf:type owl:Class .
:Stores rdf:type owl:Class .
:Adidas rdf:type :Brands ,
owl:NamedIndividual .
:Fluffy_Slippers rdf:type :Products ,
owl:NamedIndividual ;
:hasBrand :Nike .
:Nike rdf:type :Brands ,
owl:NamedIndividual .
:Sport_Depot rdf:type :Stores ,
owl:NamedIndividual ;
:hasProduct :Fluffy_Slippers .
:Tempo_Sport rdf:type :Stores ,
owl:NamedIndividual ;
:hasProduct :Fluffy_Slippers .
I'd do something like:
:Sport_Depot :sells [ :product :Fluffy_Slippers;
:price "33.00";
:price_unit "USD" ].
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.