Protege は、私が DatatypeProperty として作成した「コピー」プロパティを作成し、それらを ObjectProperty としてマークしていることに気付きました。これにより、同時にデータ型とオブジェクト プロパティの両方になります。OWLファイルで手動で修正しようとしました。範囲として「xsd:string」を割り当てます。何も役に立ちません。
Protege は OWL ファイルを読み込み、修正したばかりのプロパティを両方のリストに表示します。何かを変更してオントロジーを OWL ファイルに保存すると、2 つのエントリが作成されます。
さらに「面白い」のは、(xsd:string への) Range 仕様が、元の Datatype ではなく、ObjectProperty エントリに設定されていることです。
何か案は?
ここに例があります。
"オリジナル"
### http://www.umwd.dolnyslask.pl/ontologies/2014/03/midas#title
:title rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:label "tytuł"@pl ;
skos:definition """xxxxxx""" ;
rdfs:comment """comment"""@pl ;
rdfs:domain :Annotation ,
:Entity .
Protege によって追加されたコピー (rdfs:range がコピーに移動されていることに注意してください)
### http://www.umwd.dolnyslask.pl/ontologies/2014/03/midas#title
:title rdf:type owl:ObjectProperty ;
rdfs:label "tytuł"@pl ;
skos:definition """xxxxxx""" ;
rdfs:comment """comment"""@pl ;
rdfs:range xsd:string .
更新:これは、保護者で開いた後に上記の問題が発生する最小限のオントロジーです。
@prefix : <http://my.ontolo.gy/test#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix midas: <http://my.ontolo.gy/test#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix dctype: <http://purl.org/dc/dcmitype/> .
@prefix schema: <http://schema.rdfs.org/all#> .
@prefix dbpedia: <http://dbpedia.org/ontology/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix location: <http://www.w3.org/ns/locn#> .
@base <http://my.ontolo.gy/test> .
<http://my.ontolo.gy/test> rdf:type owl:Ontology ;
rdfs:label "Ontologia"@pl ;
rdfs:comment "Komentarz"@pl ;
owl:imports bibo: ,
<http://schema.rdfs.org/all> ,
<http://www.w3.org/2006/vcard/ns> ,
<http://www.w3.org/ns/locn> .
### http://my.ontolo.gy/test#title
:title rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:label "tytuł"@pl ;
skos:definition """definition""" ;
rdfs:comment """komentarz"""@pl ;
rdfs:range xsd:string ;
rdfs:domain :Annotation ,
:Entity .
そして、それをファイルに保存した後:
@prefix : <http://my.ontolo.gy/test#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix midas: <http://my.ontolo.gy/test#> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix dctype: <http://purl.org/dc/dcmitype/> .
@prefix schema: <http://schema.rdfs.org/all#> .
@prefix dbpedia: <http://dbpedia.org/ontology/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix location: <http://www.w3.org/ns/locn#> .
@base <http://my.ontolo.gy/test> .
<http://my.ontolo.gy/test> rdf:type owl:Ontology ;
rdfs:label "Ontologia"@pl ;
rdfs:comment "Komentarz"@pl ;
owl:imports bibo: ,
<http://schema.rdfs.org/all> ,
<http://www.w3.org/2006/vcard/ns> ,
<http://www.w3.org/ns/locn> .
#################################################################
#
# Object Properties
#
#################################################################
### http://my.ontolo.gy/test#title
:title rdf:type owl:ObjectProperty ;
rdfs:label "tytuł "@pl ;
skos:definition "definition" ;
rdfs:comment "komentarz"@pl ;
rdfs:range xsd:string .
#################################################################
#
# Data properties
#
#################################################################
### http://my.ontolo.gy/test#title
:title rdf:type owl:DatatypeProperty ,
owl:FunctionalProperty ;
rdfs:label "tytuł "@pl ;
skos:definition "definition" ;
rdfs:comment "komentarz"@pl ;
rdfs:domain :Annotation ,
:Entity .
#################################################################
#
# Classes
#
#################################################################
### http://my.ontolo.gy/test#Annotation
:Annotation rdf:type owl:Class .
### http://my.ontolo.gy/test#Entity
:Entity rdf:type owl:Class .
### Generated by the OWL API (version 3.4.2) http://owlapi.sourceforge.net