【发布时间】:2017-04-24 02:01:48
【问题描述】:
我不知道如何解析这个文件,谁能告诉我如何解析它? 该文件在下面。我已经尝试了大约 3 天的时间来找到解析的方法。
<?xml version="1.0"?>
<!DOCTYPE Ontology [
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY ontology_people1 "http://www.okkam.org/ontology_people1.owl#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>
<Ontology xmlns="http://www.w3.org/2006/12/owl2-xml#"
xml:base="http://www.w3.org/2006/12/owl2-xml#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ontology_people1="http://www.okkam.org/ontology_people1.owl#"
URI="http://www.okkam.org/ontology_people1.owl">
<SubClassOf>
<Class URI="&ontology_people1;Address"/>
<Class URI="&ontology_people1;Location"/>
</SubClassOf>
<Declaration>
<Class URI="&ontology_people1;Address"/>
</Declaration>
......
</Ontology>
<!-- Generated by the OWL API (version 2.2.1.1138) http://owlapi.sourceforge.net -->
【问题讨论】:
-
@Ignazio 对不起。你是怎么做到的?
-
为什么不能使用OWL API???
-
owlapi.sourceforge.net 有什么问题据此,OWL API 包含几个 OWL XML 解析器。
-
解析这些数据有很多(非常多)不同的方法,最好的方法取决于你想对这些信息做什么。为了给你建议,我们真的需要知道你为什么要解析它。了解您使用的编程语言(Java、C#、Javascript?)也很有帮助,因为这也很可能会影响选择。
-
谢谢大家
标签: semantic-web owl owl-api