W3C home > Mailing lists > Public > www-rdf-interest@w3.org > November 2004

adding data to properties of individuals

From: Alessandro Di Bella <aldib@fuurou.org>
Date: Thu, 18 Nov 2004 15:35:11 +0100
To: www-rdf-interest@w3.org
Message-Id: <200411181535.11789.aldib@fuurou.org>

Hi,

I'm new to OWL and I am trying to build an ontology for a project I am working 
on. My problem is that I need to add some instance information to the 
properties of a specific individual and I am not sure if it is possible or 
how to do it.

I'll explain better, given the following test ontology:
<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
    xmlns="http://127.0.0.1/ontologies/test.owl#"    
    xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:base="http://127.0.0.1/ontologies/test.owl">
  <owl:Ontology rdf:about=""/>
  <owl:Class rdf:ID="AClass"/>
  <owl:Class rdf:ID="Description"/>
  <owl:Class rdf:ID="AnotherClass"/>
  <owl:ObjectProperty rdf:ID="anObjProperty">
    <rdfs:range rdf:resource="#AnotherClass"/>
    <anObjAnnotation>
      <Description rdf:ID="DescriptionInstance"/>
    </anObjAnnotation>
    <rdfs:domain rdf:resource="#AClass"/>
  </owl:ObjectProperty>
  <owl:AnnotationProperty rdf:ID="anObjAnnotation"/>
  <AClass rdf:ID="AClassInstance">
    <anObjProperty>

<!-- PUT SOME INFO HERE -->

      <AnotherClass rdf:ID="AnotherClassInstance"/>
    </anObjProperty>
  </AClass>

  <AClass rdf:ID="ASecondClassInstance">
    <anObjProperty>

 <!-- PUT SOME INFO HERE -->

      <AnotherClass rdf:ID="AnotherClassInstance"/>
    </anObjProperty>
  </AClass>
</rdf:RDF>

I would like to be able to add some more information (that can be queried 
afterwards) where the <!-- PUT SOME INFO HERE --> is.

For example I would like to say that the property <anObjProperty>, when used 
within #ASecondClassInstance has weight 0.5 but when used in 
ASecondClassInstance has weight 0.7.

Is something like this possible?

If yes how?

Thanks

Alessandro
Received on Thursday, 18 November 2004 14:36:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:56 UTC