Superraptor123 added a comment.
@Addshore so sorry to keep bothering, I'm just trying to make sure I'm following everything correctly. Step 1: Begin the instructions here (https://semlab.io/howto/wikibase_basic.html), but for localhost, by cloning the repo: git clone https://github.com/wmde/wikibase-docker.git cd wikibase-docker git clone https://github.com/SemanticLab/wikibase-basic-local.git Step 2: Run the following (I have a Windows installation, so these are modified slightly): chmod +x wikibase-basic-local/install_compose.sh ./wikibase-basic-local/install_compose.sh Step 3: Run `docker-compose up` and test if the front-end looks right. Step 4: Following steps here (https://wikibase.consulting/transferring-wikibase-data-between-wikis/), export previous wikibase XML dump using: php maintenance/dumpBackup.php --full --quiet --filter=namespace:120,122 > wikibase.xml Step 5: Copy this file and `rebuildWikibaseIdCounters.sql` into the wikibase_1 docker container: docker cp rebuildWikibaseIdCounters.sql wikibase-docker_wikibase_1:/var/www/html/rebuildWikibaseIdCounters.sql docker cp wikibase.xml wikibase-docker_wikibase_1:/var/www/html/wikibase.xml Step 6: Install VIM on docker container: apt-get update && apt-get install -y vim Step 7: Add `$wgWBRepoSettings['allowEntityImport'] = true;` to the end of `LocalSettings.php`. Step 8: Run: php ./maintenance/importDump.php < wikibase.xml php ./maintenance/rebuildall.php php ./maintenance/runJobs.php php ./maintenance/initSiteStats.php --update php maintenance/sql.php rebuildWikibaseIdCounters.sql Step 9: Check and confirm that the new pages have been loaded at `localhost:8282`. Step 10: (Starting your steps) Run the following (all slashes changed for Windows): docker run -d -p 9999:9999 --env WIKIBASE_SCHEME=https --env WIKIBASE_HOST=intentionally-empty.wiki.opencura.com --env WDQS_HOST=localhost --env WDQS_PORT=9999 --name demo-wdqs wikibase/wdqs:0.3.40 //runBlazegraph.sh Step 11: Check if empty: curl "localhost:9999/bigdata/sparql?query=SELECT%20%2A%20WHERE%20%7B%3Fa%20%3Fb%20%3Fc%7D" Step 12: Run the updater: docker exec demo-wdqs //runUpdate.sh Step 13: Run docker exec demo-wdqs bash -c '//wdqs//runUpdate.sh -h http://${WDQS_HOST}:${WDQS_PORT} -- --wikibaseUrl ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --conceptUri ${WIKIBASE_SCHEME}://${WIKIBASE_HOST} --entityNamespaces ${WDQS_ENTITY_NAMESPACES} --init --start 20210301010101' Here is where things get funky. So the above command seems to hang for a very long time repeating: 18:22:24.098 [main] INFO o.w.q.r.t.change.RecentChangesPoller - Got no real changes 18:22:24.098 [main] INFO org.wikidata.query.rdf.tool.Updater - Sleeping for 10 secs I ctrl-C to quit and run `curl "localhost:9999/bigdata/sparql?query=SELECT%20%2A%20WHERE%20%7B%3Fa%20%3Fb%20%3Fc%7D"` and I do get an updated date when I run: curl "localhost:9999/bigdata/sparql?query=SELECT%20%2A%20WHERE%20%7B%3Fa%20%3Fb%20%3Fc%7D" (Output includes: `<literal datatype='http://www.w3.org/2001/XMLSchema#dateTime'>2021-03-01T01:01:00Z</literal>`, just as you noted) However, when I go to `http://localhost:8282/` and run SELECT * where { ?a ?b ?c } It seems to hang indefinitely. So then I thought, okay, maybe there's actually a lot of stuff in there, so I run a query I know has less than 20-30 results (there are 880 pages total that I've imported, 3588 edits): SELECT ?item ?itemLabel WHERE { ?item wdt:P9 wd:Q8. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } (This is where things get weird; so if I hover over `P9` or 'Q8`, it is clear that the WDQS knows what they are and they link to the correct pages. However, when I run the query I get `No matching records found`.) Did I mess something up here? TASK DETAIL https://phabricator.wikimedia.org/T186161 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Superraptor123 Cc: RShigapov, danshick-wmde, Samantha_Alipio_WMDE, darthmon_wmde, WMDE-leszek, Superraptor123, Tinyttt, Louperivois, Jsamwrites, Considering.Different.Routes, DarTar, Addshore, Andrawaag, Aklapper, maantietaja, Akuckartz, Jelabra, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Asahiko, abian, despens, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
