这个OWL转换如何工作?

时间:2017-12-31 01:44:22

标签: rdf owl

来自https://www.w3.org/TR/sparql11-overview/的示例:

 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

 <http://example.org/alice#me> a foaf:Person .
 <http://example.org/alice#me> foaf:name "Alice" .
 <http://example.org/alice#me> foaf:mbox <mailto:alice@example.org> .
 <http://example.org/alice#me> foaf:knows <http://example.org/bob#me> .
 <http://example.org/bob#me> foaf:knows <http://example.org/alice#me> .
 <http://example.org/bob#me> foaf:name "Bob" .
 <http://example.org/alice#me> foaf:knows <http://example.org/charlie#me> .
 <http://example.org/charlie#me> foaf:knows <http://example.org/alice#me> .
 <http://example.org/charlie#me> foaf:name "Charlie" .
 <http://example.org/alice#me> foaf:knows <http://example.org/snoopy> .
 <http://example.org/snoopy> foaf:name "Snoopy"@en .

我将这个海龟本体加载到Protege中并将它们保存为RDF / XML格式,它转换为以下形式:

<!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Annotation properties
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->
    <!-- http://xmlns.com/foaf/0.1/knows -->
    <owl:AnnotationProperty rdf:about="http://xmlns.com/foaf/0.1/knows"/>
    <!-- http://xmlns.com/foaf/0.1/mbox -->
    <owl:AnnotationProperty rdf:about="http://xmlns.com/foaf/0.1/mbox"/>
    <!-- http://xmlns.com/foaf/0.1/name -->
    <owl:AnnotationProperty rdf:about="http://xmlns.com/foaf/0.1/name"/>

    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Classes
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->
    <!-- http://xmlns.com/foaf/0.1/Person -->
    <owl:Class rdf:about="http://xmlns.com/foaf/0.1/Person"/>

    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Individuals
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->

    <!-- http://example.org/alice#me -->
    <owl:NamedIndividual rdf:about="http://example.org/alice#me">
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
        <foaf:knows rdf:resource="http://example.org/snoopy"/>
        <foaf:knows rdf:resource="http://example.org/bob#me"/>
        <foaf:knows rdf:resource="http://example.org/charlie#me"/>
        <foaf:mbox rdf:resource="mailto:alice@example.org"/>
        <foaf:name>Alice</foaf:name>
    </owl:NamedIndividual>

    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Annotations
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->
    <rdf:Description rdf:about="http://example.org/snoopy">
        <foaf:name xml:lang="en">Snoopy</foaf:name>
    </rdf:Description>
    <rdf:Description rdf:about="http://example.org/bob#me">
        <foaf:knows rdf:resource="http://example.org/alice#me"/>
        <foaf:name>Bob</foaf:name>
    </rdf:Description>
    <rdf:Description rdf:about="http://example.org/charlie#me">
        <foaf:name>Charlie</foaf:name>
        <foaf:knows rdf:resource="http://example.org/alice#me"/>
    </rdf:Description>

为什么“name,mbox和knows”成为注释属性?它们不应该是对象属性吗?另外,为什么只有“爱丽丝”成为名人个人?不应该“鲍勃”,“史努比”和“查理”是一样的吗?

0 个答案:

没有答案