OWL API获取OWLAnonymousIndividual的信息

时间:2017-08-10 08:23:38

标签: java owl owl-api

我尝试使用OWLApi从文件的这一部分读取文件owl:

:RGBCapability rdf:type owl:Class ;
    rdfs:subClassOf :Capability ,
        [ rdf:type owl:Restriction ;
            owl:onProperty :hasParameter ;
            owl:hasValue [ 
                rdf:type :Parameter ;
                :name "g"^^xsd:string ;
                :mandatory "true"^^xsd:boolean ;
                :hasDatatype xsd:integer
            ]
        ] ,
        [ rdf:type owl:Restriction ;
            owl:onProperty :hasParameter ;
            owl:hasValue [ 
                rdf:type :Parameter ;
                :name "r"^^xsd:string ;
                :mandatory "true"^^xsd:boolean ;
                :hasDatatype xsd:integer
            ]
        ] ,
        [ rdf:type owl:Restriction ;
            owl:onProperty :hasParameter ;
            owl:hasValue [ 
                rdf:type :Parameter ;
                :name "b"^^xsd:string ;
                :mandatory "true"^^xsd:boolean ;
                :hasDatatype xsd:integer
            ]
        ].

我获得了这个OWLClassExpression:

(uk.ac.manchester.cs.owl.owlapi.OWLObjectHasValueImpl) ObjectHasValue(<http://www.url.com/#hasParameter> _:genid4)

所以我的属性是hasParameter但是OWLIndividual是OWLAnonymousIndividual,我怎么能得到_:genid4的其他信息:type:参数,:name&#34; g&#34; ^^ xsd:string,等等?

0 个答案:

没有答案