【发布时间】:2016-12-26 21:04:59
【问题描述】:
我是 jena 库的新手,想列出所有资源、属性、qualifiedCardinality 限制的数据类型。
我的限制:
...
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="http://purl.oclc.org/NET/ssnx/ssn#sensingMethodUsed"/>
<owl:onClass rdf:resource="http://purl.oclc.org/NET/ssnx/ssn#Sensing"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="http://purl.oclc.org/NET/ssnx/ssn#featureOfInterest"/>
<owl:onClass rdf:resource="http://purl.oclc.org/NET/ssnx/ssn#FeatureOfInterest"/>
<owl:qualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:qualifiedCardinality>
</owl:Restriction>
</rdfs:subClassOf>
...
所需的字符串输出:
qualcard sensingMethodUsed nonNegativeIteger 1 Sensing
qualcard featureOfInterest nonNegativeIteger 1 FeatureOfInterest
请有人帮帮我。
【问题讨论】: