Git Product home page Git Product logo

Comments (8)

BynariStar avatar BynariStar commented on June 14, 2024 1

Ah, that solution works much better :)
Thank you for your help!

from wikibase-sdk.

maxlath avatar maxlath commented on June 14, 2024

that could probably done using UNIONs in the SPARQL requests

from wikibase-sdk.

BynariStar avatar BynariStar commented on June 14, 2024

That's what I've figured as well, but being a SPARQL noob it'd be nice if getReverseClaims could handle that for me 😛

from wikibase-sdk.

maxlath avatar maxlath commented on June 14, 2024

done in 36d79e9 and published in v5.15.0, can you confirm it works for you? :)

from wikibase-sdk.

BynariStar avatar BynariStar commented on June 14, 2024

Amazing, thank you!

I tried it with a few property values and it works great! However, I also tried it with my specific use case (>1000 property values) and I got a timeout exception

I couldn't really find in any Wikidata documentation the max amount of UNIONs you can do in a single query..

from wikibase-sdk.

maxlath avatar maxlath commented on June 14, 2024

waaaah, yes a 1000 values doesn't look doable that way ^^
could you tell me more about your case? maybe I can help you write the SPARQL query to do it without timeout

from wikibase-sdk.

BynariStar avatar BynariStar commented on June 14, 2024

Yes.. figures :(
I have a large list of property values that should each have one wikidata item, similar to the book example with their ISBN. I need to match each value to its respective wikidata id

from wikibase-sdk.

maxlath avatar maxlath commented on June 14, 2024

can't you do it one by one? or, if the ensemble isn't too big, get a dump of all the values for this property against which you could match your values? For instance, you could get all the Wikidata ids matched to an ISBN-13 with this query

from wikibase-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.