Open fushang318 opened 10 years ago
owl_parser = new OwlParser(owl_string)
ontology = owl_parser.build()
ontology.classes
ontology.annotations
ontology.individuals
ontology.data_properties
ontology.object_properties
ontology.data_types
class.sub_classes class.parent_classes class.equivalence_classes class.individuals
class.annotation_values class.disjoint_classes
individual.object_property_values
individual.same_individuals individual.different_individuals individual.annotation_values individual.data_property_values
anno.domains_classes anno.ranges_classes anno.sub_annotations anno.parent_annotations anno.annotation_values
object_property.equivalence_object_properties object_property.sub_object_properties object_property.parent_object_properties object_property.inverse_object_properties object_property.disjoint_object_properties
object_property.domain_classes object_property.range_classes object_property.characteristics object_property.annotation_values
data_property.equivalence_data_properties data_property.sub_data_properties data_property.parent_data_properties data_property.disjoint_data_properties data_property.domain_classes data_property.range_data_types data_property.characteristics data_property.annotation_values
data_type.annotation_values
OntologyClass
OntologyClass 类需要如下方法
OntologyClass 类需要如下属性
OntologyIndividual
OntologyIndividual 类需要如下方法
OntologyIndividual 类需要如下属性
OntologyAnnotation
OntologyAnnotation 类需要如下方法
OntologyAnnotation 类需要如下属性
OntologyObjectProperty
OntologyObjectProperty 类需要如下方法
OntologyObjectProperty 类需要如下属性
OntologyCharacteristic
OntologyCharacteristic 需要的常量
这七个常量都是 OntologyCharacteristic 实例
OntologyCharacteristic 需要的属性
OntologyDataProperty
OntologyDataProperty 类需要如下方法
OntologyDataProperty 类需要如下属性
OntologyDatatype
方法
属性
class iri 的取值
1 以 "#" 开头例如 "#A" 2 默认类型 "owl:Thing"
individual iri 的取值
以 "#" 开头例如 "#a"
annotation iri 的取值
1 以 "#" 开头例如 "#anno" 2 默认类型 "owl:backwardCompatibleWith" "rdfs:comment" "owl:deprecated" "owl:incompatibleWith" "rdfs:isDefinedBy" "rdfs:label" "owl:priorVersion" "rdfs:seeAlso" "owl:versionInfo"
object_property iri
1 以 "#" 开头例如 "#opa" 2 默认类型 "owl:topObjectProperty"
data_property iri
1 以 "#" 开头例如 "#dpa" 2 默认类型 "owl:topDataProperty"
data_type iri
1 以 "#" 开头例如 "#dt" 2 默认类型 "rdf:PlainLiteral" "xsd:anyURI" "xsd:base64Binary" "xsd:boolean" "xsd:byte" "xsd:dateTime" "xsd:dateTimeStamp" "xsd:decimal" "xsd:double" "xsd:float" "xsd:hexBinary" "xsd:int" "xsd:integer" "xsd:language" "xsd:Literal" "xsd:long" "xsd:Name" "xsd:NCName" "xsd:negativeInteger" "xsd:NMTOKEN" "xsd:nonNegativeInteger" "xsd:nonPositiveInteger" "xsd:normalizedString" "xsd:positiveInteger" "xsd:rational" "xsd:real" "xsd:short" "xsd:string" "xsd:token" "xsd:unsignedByte" "xsd:unsignedInt" "xsd:unsignedLong" "xsd:unsignedShort" "xsd:XMLLiteral"