Hi!
I'm interested in using SPARQL for my own Wikibase installation. But, I was
getting errors in the munge step.

To reproduce the problem, I set up a new Wikibase instance and tried to
load it into wikidata-query-rdf.
It has only one item, one property, and one statement.

First I used the included dumpRdf.php to create the RDF file, attached.

Then I did the munge step. It produced the errors, attached.

I don't understand why there is "Unrecognized subjects" when the subjects
listed do match the patterns, "Expected only sitelinks
 and subjects starting with http://www.wikidata.org/wiki/Special:EntityData/
and
 http://www.wikidata.org/entity/";

I don't understand what is the revision id it is looking for.

What is the proper procedure for indexing?
If necessary, I can code in Java and fix the tools. I just need an overview
on how this system works.

Thanks!
Regards,
Miguel
13:35:21.016 [main] INFO  org.wikidata.query.rdf.tool.Munge - Switching to 
./data/split/wikidump-000000001.ttl.gz
13:35:21.101 [main] INFO  o.wikidata.query.rdf.tool.rdf.Munger - Unrecognized 
subjects: 
[http://www.wikidata.org/entity/statement/Q2-cefd4861-46ca-d3b3-0a09-20ac7dc6ab61,
 http://www.wikidata.org/wiki/index.php/Special:EntityData/P2, 
http://www.wikidata.org/wiki/index.php/Special:EntityData/Q2].  Expected only 
sitelinks and subjects starting with 
http://www.wikidata.org/wiki/Special:EntityData/ and 
http://www.wikidata.org/entity/
13:35:21.105 [main] WARN  org.wikidata.query.rdf.tool.Munge - Error munging null
org.wikidata.query.rdf.tool.exception.ContainedException: Didn't get a revision 
id for [(http://www.wikidata.org/prop/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#ObjectProperty), 
(http://www.wikidata.org/prop/statement/value/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#ObjectProperty), 
(http://www.wikidata.org/prop/qualifier/value/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#ObjectProperty), 
(http://www.wikidata.org/prop/reference/value/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#ObjectProperty), 
(http://www.wikidata.org/prop/statement/value-normalized/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#ObjectProperty), 
(http://www.wikidata.org/prop/qualifier/value-normalized/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#ObjectProperty), 
(http://www.wikidata.org/prop/reference/value-normalized/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#ObjectProperty), 
(http://www.wikidata.org/prop/direct/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#DatatypeProperty), 
(http://www.wikidata.org/prop/statement/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#DatatypeProperty), 
(http://www.wikidata.org/prop/qualifier/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#DatatypeProperty), 
(http://www.wikidata.org/prop/reference/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#DatatypeProperty), 
(http://www.wikidata.org/prop/novalue/P2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#Class), (http://www.wikidata.org/prop/novalue/P2, 
http://www.w3.org/2002/07/owl#complementOf, 
_:genid-1ba765b9b61745bc88a3bcfe76395418-genid1), 
(_:genid-1ba765b9b61745bc88a3bcfe76395418-genid1, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2002/07/owl#Restriction), 
(_:genid-1ba765b9b61745bc88a3bcfe76395418-genid1, 
http://www.w3.org/2002/07/owl#onProperty, 
http://www.wikidata.org/prop/direct/P2), 
(_:genid-1ba765b9b61745bc88a3bcfe76395418-genid1, 
http://www.w3.org/2002/07/owl#someValuesFrom, 
http://www.w3.org/2002/07/owl#Thing)]
        at 
org.wikidata.query.rdf.tool.rdf.Munger$MungeOperation.finishCommon(Munger.java:802)
 ~[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at 
org.wikidata.query.rdf.tool.rdf.Munger$MungeOperation.munge(Munger.java:421) 
~[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.wikidata.query.rdf.tool.rdf.Munger.munge(Munger.java:219) 
~[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.wikidata.query.rdf.tool.rdf.Munger.munge(Munger.java:247) 
~[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at 
org.wikidata.query.rdf.tool.Munge$EntityMungingRdfHandler.munge(Munge.java:363) 
[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at 
org.wikidata.query.rdf.tool.Munge$EntityMungingRdfHandler.endRDF(Munge.java:351)
 [wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at 
org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler.endRDF(DelegatingRdfHandler.java:28)
 [wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:223) 
[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.wikidata.query.rdf.tool.Munge.run(Munge.java:216) 
[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]
        at org.wikidata.query.rdf.tool.Munge.main(Munge.java:132) 
[wikidata-query-tools-0.2.4-SNAPSHOT-jar-with-dependencies.jar:na]

Attachment: import-wikibase-test.rdf
Description: Binary data

_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to