Mailing list ARC-DEV: Archives

ARC and OWL-Ontology

From: =?iso-8859-1?Q?=22Timo_H=E4hne=22?= 
Subject: ARC and OWL-Ontology
Date: Sat, 31 Oct 2009 10:01:21 +0100


Hello,

first thanks for your answers on my posting with the newbie-questions a few days before! With your help my first sparql-queries work ;-).

But working on the semantic web technology brings other questions – especially based on the interaction of ARC and an Ontology in OWL. 

I can load an Ontology into the triple-store with $store->query(‘LOAD myontology.owl’); - that works and I even can query the triples from the Ontology.

In the example movie-ontology I work with are triples like

[43] => Array
                        (
                            [subjekt] => http://www.semprog.com/film#ridley_scott
                            [subjekt type] => uri
                            [praedikat] => http://www.semprog.com/film#name
                            [praedikat type] => uri
                            [objekt] => Ridley Scott
                            [objekt type] => literal
                            [objekt datatype] => http://www.w3.org/2001/XMLSchema#string
                        )

But how can I create new individuals (or even classes)? Is the way just to build the triple-data “manually” and insert the data with $store->insert($triples)? Or is there another way to work with the ontology, for example with methods like createClass() or createInstance() which “control” the consistency and the data-types in the given triple-data?

Best regards,

Timo
-- 
Neu: GMX DSL bis 50.000 kBit/s und 200,- Euro Startguthaben!
http://portal.gmx.net/de/go/dsl02