Dear Wikidata tech team:
I have a problem when running munge.sh for wikidata.query.rdf service for my standalone wiki system.
I got following exceptions:
http://10.24.21.180/entity/Q805, http://10.24.21.180/entity/Q804, http://10.24.21.180/entity/Q803] while processing http://www.wikidata.org/entity/null. Expected only sitelinks and subjects starting with http://www.wikidata.org/wiki/Special:EntityData/ and http://www.wikidata.org/entity/
15:14:23.951 [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 [(_:genid-eee44f6750a645b498f03e7341f5d863-genid1, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Restriction), (_:genid-eee44f6750a645b498f03e7341f5d863-genid1, http://www.w3.org/2002/07/owl#onProperty, http://10.24.21.180/prop/direct/P5), (_:genid-eee44f6750a645b498f03e7341f5d863-genid1, http://www.w3.org/2002/07/owl#someValuesFrom, http://www.w3.org/2002/07/owl#Thing), (_:genid-eee44f6750a645b498f03e7341f5d863-genid2, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Restriction), (_:genid-eee44f6750a645b498f03e7341f5d863-genid2, http://www.w3.org/2002/07/owl#onProperty, http://10.24.21.180/prop/direct/P7), (_:genid-eee44f6750a645b498f03e7341f5d863-genid2, http://www.w3.org/2002/07/owl#someValuesFrom, http://www.w3.org/2002/07/owl#Thing), (_:genid-eee44f6750a645b498f03e7341f5d863-genid3, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Restriction), (_:genid-eee44f6750a645b498f03e7341f5d863-genid3, http://www.w3.org/2002/07/owl#onProperty, http://10.24.21.180/prop/direct/P8), (_:genid-eee44f6750a645b498f03e7341f5d863-genid3, http://www.w3.org/2002/07/owl#someValuesFrom, http://www.w3.org/2002/07/owl#Thing), (_:genid-eee44f6750a645b498f03e7341f5d863-genid4,http://www.w3.org/1999/02/2 2-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Restriction), (_:genid-eee44f6750a645b498f03e7341f5d863-genid4, http://www.w3.org/2002/07/owl#onProperty, http://10.24.21.180/prop/direct/P9), (_:genid-eee44f6750a645b498f03e7341f5d863-genid4, http://www.w3.org/2002/07/owl#someValuesFrom, http://www.w3.org/2002/07/owl#Thing), (_:genid-eee44f6750a645b498f03e7341f5d863-genid5, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Restriction), (_:genid-eee44f6750a645b498f03e7341f5d863-genid5, http://www.w3.org/2002/07/owl#onProperty, http://10.24.21.180/prop/direct/P10), (_:genid-eee44f6750a645b498f03e7341f5d863-genid5, http://www.w3.org/2002/07/owl#someValuesFrom, http://www.w3.org/2002/07/owl#Thing), (_:genid-eee44f6750a645b498f03e7341f5d863-genid6, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2002/07/owl#Restriction), (_:genid-eee44f6750a645b498f03e7341f5d863-genid6, http://www.w3.org/2002/07/owl#onProperty, http://10.24.21.180/prop/direct/P11), (_:genid-eee44f6750a645b498f03e7341f5d863-genid6, 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.ja va:841)
at org.wikidata.query.rdf.tool.rdf.Munger$MungeOperation.munge(Munger.java:430)
at org.wikidata.query.rdf.tool.rdf.Munger.munge(Munger.java:223)
at org.wikidata.query.rdf.tool.rdf.Munger.munge(Munger.java:250)
at org.wikidata.query.rdf.tool.Munge$EntityMungingRdfHandler.munge(Munge.java:3 45)
at org.wikidata.query.rdf.tool.Munge$EntityMungingRdfHandler.endRDF(Munge.java: 333)
at org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler.endRDF(DelegatingRdfHan dler.java:28)
at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:223)
at org.wikidata.query.rdf.tool.Munge.run(Munge.java:196)
at org.wikidata.query.rdf.tool.Munge.main(Munge.java:112)
The prefix for my Wiki system is :
@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@prefix xsd: http://www.w3.org/2001/XMLSchema# .
@prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .
@prefix owl: http://www.w3.org/2002/07/owl# .
@prefix wikibase: http://wikiba.se/ontology-beta# .
@prefix wdata: http://10.24.21.180/w/index.php/%E7%89%B9%E6%AE%8A:EntityData/ .
@prefix wd: http://10.24.21.180/entity/ .
@prefix wds: http://10.24.21.180/entity/statement/ .
@prefix wdref: http://10.24.21.180/reference/ .
@prefix wdv: http://10.24.21.180/value/ .
@prefix wdt: http://10.24.21.180/prop/direct/ .
@prefix p: http://10.24.21.180/prop/ .
@prefix ps: http://10.24.21.180/prop/statement/ .
@prefix psv: http://10.24.21.180/prop/statement/value/ .
@prefix psn: http://10.24.21.180/prop/statement/value-normalized/ .
@prefix pq: http://10.24.21.180/prop/qualifier/ .
@prefix pqv: http://10.24.21.180/prop/qualifier/value/ .
@prefix pqn: http://10.24.21.180/prop/qualifier/value-normalized/ .
@prefix pr: http://10.24.21.180/prop/reference/ .
@prefix prv: http://10.24.21.180/prop/reference/value/ .
@prefix prn: http://10.24.21.180/prop/reference/value-normalized/ .
@prefix wdno: http://10.24.21.180/prop/novalue/ .
@prefix skos: http://www.w3.org/2004/02/skos/core# .
@prefix schema: http://schema.org/ .
@prefix cc: http://creativecommons.org/ns# .
@prefix geo: http://www.opengis.net/ont/geosparql# .
@prefix prov: http://www.w3.org/ns/prov# .
And I googled, I found this answer to this problem:
https://www.mail-archive.com/search?l=wikidata-tech@lists.wikimedia.org&... bject:%22%5C%5BWikidata%5C-tech%5C%5D+wikidata%5C-query%5C-rdf+cannot+munge+ a+custom+Wikidata%09instance%22&o=newest&f=1
The solution you people offered is :
Also, if you're running your own instance, you may want to set up a
different URL for wikidata prefix by setting conceptBaseUri (see
docs/options.wiki). You may then also want to use -w option for munger
to set up correct hostname for your setup and also -DwikibaseHost when
you're running Blazegraph/updater.
But I am very new here. Could you please give me a specific instructions here about how to set up conceptBaseURi ,host name and DwikiBaseHost(How do I figure out the exact value of them?) ?
Could you please give me a hand?
Thank you so much! A desperate girl from China .
Thanks &Regards,
Fei