Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Using SWRL to Add to a list

Kormann, Joseph joseph.kormann at lmco.com
Tue Oct 21 07:44:42 PDT 2008


I have a target Ontology, Target, with a Class that has a Key-Value pair
for internal attributes. I have a more defined Ontology, Fix, with a
Class with fixed Properties. I want to use SWRL to move (or associate)
the information in the Properties from Fix to the Attribute class and
attributes Property in Target.

Any suggestions?

Target Ontology:
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
    <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
    <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>
<rdf:RDF xmlns="http://www.owl-ontologies.com/Ontology1224599798.owl#"
     xml:base="http://www.owl-ontologies.com/Ontology1224599798.owl"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:owl="http://www.w3.org/2002/07/owl#">
    <owl:Ontology rdf:about=""/>
    <owl:Class rdf:ID="Attribute"/>
    <owl:ObjectProperty rdf:ID="attributeFor">
        <rdf:type rdf:resource="&owl;FunctionalProperty"/>
        <rdfs:domain rdf:resource="#Attribute"/>
        <rdfs:range rdf:resource="#MasterClass"/>
        <owl:inverseOf rdf:resource="#attributes"/>
    </owl:ObjectProperty>
    <owl:ObjectProperty rdf:ID="attributes">
        <rdf:type rdf:resource="&owl;InverseFunctionalProperty"/>
        <rdfs:domain rdf:resource="#MasterClass"/>
        <rdfs:range rdf:resource="#Attribute"/>
        <owl:inverseOf rdf:resource="#attributeFor"/>
    </owl:ObjectProperty>
    <owl:DatatypeProperty rdf:ID="attrKey">
        <rdf:type rdf:resource="&owl;FunctionalProperty"/>
        <rdfs:domain rdf:resource="#Attribute"/>
        <rdfs:range rdf:resource="&xsd;string"/>
    </owl:DatatypeProperty>
    <owl:DatatypeProperty rdf:ID="attrValue">
        <rdf:type rdf:resource="&owl;FunctionalProperty"/>
        <rdfs:domain rdf:resource="#Attribute"/>
        <rdfs:range rdf:resource="&xsd;string"/>
    </owl:DatatypeProperty>
    <owl:Class rdf:ID="MasterClass"/>
</rdf:RDF>



More information about the protege-owl mailing list