我已经下载了Protege 5.2.0,并尝试打开YAGO分类本体( YAGOTaxonomy.ttl,YAGOTaxonomy.tsv)。每次尝试打开本体时,我都会遇到很多错误,例如我将无法在这里显示所有这些。
turle语法
>>> from itertools import product
>>> temperatures = [
[4,0,3],
[0,1,0],
[1,4,2],
[2,0,1],
[0,1,3],
[7,3,2],
[0,0,1],
[2,1,4]
]
>>> monday_values,tuesday_values,wednesday_values = zip(*temperatures)
>>> result = []
>>> for i,j,k in product(range(len(monday_values)), range(len(tuesday_values)), range(len(wednesday_values))):
# remove same day values
if i==j or j==k or k==i:
continue
if (monday_values[i]-tuesday_values[j]==3) and (tuesday_values[j]-wednesday_values[k]==0):
result.append((i+1,j+1,k+1))
>>> result
[(1, 2, 4), (1, 2, 7), (1, 5, 4), (1, 5, 7), (1, 8, 4), (1, 8, 7), (6, 3, 8)]
OBO格式
org.semanticweb.owlapi.rdf.turtle.parser.ParseException: Encountered " <FULLIRI> "<wikicat_Companies_operating_former_Chicago,_Milwaukee,_St._Paul_and_Pacific_Railroad_lines<!--on_the_CC&P--> "" at line 5044, column 1.
Was expecting:
<EOF>
Full Stack Trace
-----------------------------------------------------------------------------------------
org.semanticweb.owlapi.rdf.turtle.parser.TurtleParserException: org.semanticweb.owlapi.rdf.turtle.parser.ParseException: Encountered " <FULLIRI> "<wikicat_Companies_operating_former_Chicago,_Milwaukee,_St._Paul_and_Pacific_Railroad_lines<!--on_the_CC&P--> "" at line 5044, column 1.
Was expecting:
<EOF>
at org.semanticweb.owlapi.rdf.turtle.parser.TurtleOntologyParser.parse(TurtleOntologyParser.java:90)
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyFactoryImpl.loadOWLOntology(OWLOntologyFactoryImpl.java:197)
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.actualParse(OWLOntologyManagerImpl.java:1099)
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntology(OWLOntologyManagerImpl.java:1055)
at uk.ac.manchester.cs.owl.owlapi.OWLOntologyManagerImpl.loadOntologyFromOntologyDocument(OWLOntologyManagerImpl.java:1011)
at org.protege.editor.owl.model.io.OntologyLoader.loadOntologyInternal(OntologyLoader.java:101)
at org.protege.editor.owl.model.io.OntologyLoader.lambda$loadOntologyInOtherThread$210(OntologyLoader.java:60)
at org.protege.editor.owl.model.io.OntologyLoader$$Lambda$106/2002289766.call(Unknown Source)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.semanticweb.owlapi.rdf.turtle.parser.ParseException: Encountered " <FULLIRI> "<wikicat_Companies_operating_former_Chicago,_Milwaukee,_St._Paul_and_Pacific_Railroad_lines<!--on_the_CC&P--> "" at line 5044, column 1.
Was expecting:
<EOF>
at org.semanticweb.owlapi.rdf.turtle.parser.TurtleParser.generateParseException(TurtleParser.java:1960)
at org.semanticweb.owlapi.rdf.turtle.parser.TurtleParser.jj_consume_token(TurtleParser.java:1829)
at org.semanticweb.owlapi.rdf.turtle.parser.TurtleParser.parseDocument(TurtleParser.java:122)
at org.semanticweb.owlapi.rdf.turtle.parser.TurtleOntologyParser.parse(TurtleOntologyParser.java:82)
... 11 more
我已附上一张图片,显示了protege产生的错误组
protege error image。解决该问题的任何帮助将不胜感激。