I'm not sure what you're integrating with, but almost certainly you want to
recast that in terms of a more widely used identifier (LCCN, VIAF or
ORCID). Let me know if you want help with that.
You've probably already encountered a broader range of values for P21 than
other systems allow. I try to query for P91 whenever I query for P21. I
find it's just too easy to fall into old habits and end up excluding people
I shouldn't.
You may be interested in the queries in
https://www.wikidata.org/wiki/User:Stuartyeates/PeopleForBookDisplays which
I wrote to support
https://ideas.exlibrisgroup.com/forums/308173-alma/suggestions/49470473-linked-data-powered-sets-and-collections
. I would encourage ALMA/PRIMO users interested in this kind of thing 'just
working' in a future version of ALMA/PRIMO to vote for that idea (anyone
can vote) and/or raise issues in the comments.
cheers
stuart
--
...let us be heard from red core to black sky
On Tue, 8 Apr 2025 at 08:42, Eric Lease Morgan <
[log in to unmask]> wrote:
>
>
> On Apr 7, 2025, at 3:28 PM, Stuart A. Yeates <[log in to unmask]> wrote:
>
> > I have some queries at:
> >
> > https://www.wikidata.org/wiki/User:Stuartyeates/InterestingPeopleQuery
> >
> > which show how to query for people and handle things like multiple dates
> of birth or LCCNs. The core idea is to concat the LCCNs into a single field
> using:
> >
> > (GROUP_CONCAT(DISTINCT ?lccnurl; SEPARATOR = ";") AS ?LCCN_urls)
> >
> > and then GROUP BY.
> >
> > --
> > stuart
>
>
> Yep, exactly.
>
> Susan Hoover, over on Slack LD4Libraries gave me a cool query doing just
> those things. I enhanced the query to include OPTIONAL variables, wrapped
> it in a Python script that takes a QNumber of a person as input, and
> outputs a JSON stream describing the person. See attached? Example usages:
>
> # Abraham Lincoln (attached)
> ./person2metadata.py Q91
>
> # Hector piped to jq for pretty display
> ./person2metadata.py Q159666 | jq
>
> # Charlemagne piped to jq and paged
> ./person2metadata.py Q3044 | jq | less -S
>
> The next steps are to:
>
> 1. expand the list of properties so the metadata
> of other things (like honor, beauty, or United
> States of America) can be garnered
>
> 2. allow the script to take multiple inputs
>
> 3. create a network graph file from the results
>
> In the end, I will be able to study and visualize the characteristics and
> relationships of many named-entities in a given collection of narrative
> works.
>
> Fun!
>
> --
> Eric Morgan
> University of Notre Dame
>
>
>
>
>
>
>
>
>
>
>
>
|