GoodRelationsComprehensiveEclass

From Wiki of the E-Business and Web Science Research Group
Jump to: navigation, search
gr_banner_small.png
GoodRelations is a standardized vocabulary for product, price, and company data that can be embedded into existing static and dynamic Web pages.

Project Main Page
Vocabulary
Documentation
Developer's Wiki
GoodRelations Cookbook

This page is a stub and will be completed shortly.


Note: There are already mature examples for using eClassOWL with GoodRelations at http://www.heppnetz.de/projects/eclassowl/


On this page, we will provide instructions on how to use the GoodRelations ontology in combination with eClassOWL.

Example

Don't forget to make your RDF data known: http://pingthesemanticweb.com/

PREFIX eco: <http://www.ebusiness-unibw.org/ontologies/eclass/5.1.4/>.

# Import domain-specific ontology
<>	a owl:Ontology ;
    owl:imports <http://purl.org/goodrelations/v1> ,
				<http://www.ebusiness-unibw.org/ontologies/eclass/5.1.4/> .

# Use the classes and properties from the ontology

# myPencil is a pencil with a pointed tip and a length of 150 mm
foo:myPencil
	# Class “Pencil“: 24-24-01-01 [ AKF303003 ]
	a eco:C_AKF303003-gen , gr:ActualProductOrServiceInstance ;
	# Length [BAF559001] 150 mm
    eco:P_BAF559001 foo:QuantitativeValueFloat_1;
# Design of tip state [BAG073001] = "pointed" [BAC386001]
	eco:P_BAG073001 eco:V_BAC386001.

foo:QuantitativeValueFloat_1
      a gr:QuantitativeValueFloat ;
      gr:hasUnitOfMeasurement "MMT"^^xsd:string ;
      gr:hasValueFloat "150.0"^^xsd:float .



	eco:C_AKF303003-gen
	Properties
	Length, BAF559001
	eco:P_BAF559001
	Design of tip state, BAG073001
	eco:P_BAG073001
	Value “pointed”, BAC386001
	eco:P_BAC386001


Step 1: Determine the proper eClassOWL class

Eclassowl-gr.png


Eclassowl2.png

Step 2: Determine the property and value IDs

Quantitative

Picture 27.png

Qualitative

Eclass-qualitative.png

Eclass-value.png

Tourism - Relevant  eClassOWL Categories

2512 Travel management

2520 Food and Service

Rental / Lease

2801 Automobile

2805 Water vehicle (Boote etc.)

2807 Bicycle