I want to be able to dereference URIs from Wikidata agents to EDM
Description
Attachments
- 20 Feb 2020, 11:37 AM
- 10 Jan 2020, 09:45 AM
Activity
Magnus Sälgö February 20, 2020 at 11:37 AM
If I understand this correct this is what we need when we have a lot of Swedish female sculptors not having an Europeana Agent id
Question A: If Europeana create an Adm:Agent from an Wikidata URI will you update Wikidata P7704 for that object?
A-2: Do you have a SPARQL endpoint so we easy can check:
A-2-1: New created items compare Wikidata recent change stream and API:Recent_changes_stream
A-2-2: Deleted items
A-2-3: Merged items compare WD query https://w.wiki/E3V “WD objects with Europeana Property P7704 set that has been merged the last week
Question B: What we see is that we lack Entity lifecycle management between Europeana and Wikidata and we need to understand the plans and what will be done/when and not done
B-1: Duplicates are created i.e. more Europeana items reference the same Wikidata item see Wikidata list Constraint violations for P7704 Europeana Entity
B-2: Wikidata ids get deleted see Europeana referencing > 1200 deleted Wikidata objects see T240738
B-3: Wikidata items get merged see above
My Task for tracking how to create new Europeana Agent IDs T243907
Regards
Magnus Sälgö
Wikidata voluntaire
Stockholm, Sweden
salgo60@msn.com
Linked in
Hugo Manguinhas February 10, 2020 at 4:32 PM
looks nice in Acceptance
Hugo Manguinhas February 10, 2020 at 12:43 PM
yes, I chose to follow the labels on Wikidata without applying any sort of “judgment” of my side… btw, I remembered why I had mapped to Man and Women, and that was because of the way one would expect to search, but in fact someone can search for “19th century female scientists” or “Women in WWI“ so we cant please everyone
Jochen Vermeulen February 10, 2020 at 10:27 AM
@Hugo Manguinhas So if I see it right, we’re just changing ‘Man’ to ‘Male’ and ‘Woman’ to ‘Female’? And ‘Transgender woman’ stays the same?
Hugo Manguinhas February 7, 2020 at 2:48 PM
@Jochen Vermeulen after speaking with Valentine, we need to make this change to the XSLT:
<!-- gender -->
<xsl:for-each select="wdt:P21">
<xsl:choose>
<xsl:when test="@rdf:resource='http://www.wikidata.org/entity/Q6581097'">
<xsl:element name="rdaGr2:gender" xml:lang="en">Male</xsl:element>
</xsl:when>
<xsl:when test="@rdf:resource='http://www.wikidata.org/entity/Q6581072'">
<xsl:element name="rdaGr2:gender" xml:lang="en">Female</xsl:element>
</xsl:when>
<xsl:when test="@rdf:resource='http://www.wikidata.org/entity/Q1052281'">
<xsl:element name="rdaGr2:gender" xml:lang="en">Transgender woman</xsl:element>
</xsl:when>
<xsl:when test="@rdf:resource='http://www.wikidata.org/entity/Q1097630'">
<xsl:element name="rdaGr2:gender" xml:lang="en">Intersex</xsl:element>
</xsl:when>
</xsl:choose>
</xsl:for-each>
A new mapping from WIkidata to EDM needs to be added for dereferencing.
The xslt was created by Hugo based on the template and is attached to the ticket
The URIs to be dereferenced looks like
http://www.wikidata.org/entity/Q604667
Q604667 being the id of a specific entity.
This ticket can be tested using the sample OAI record from Fashion including Wikidata: http://panic.image.ntua.gr:9876/fashion/oai?verb=ListRecords&set=1012&metadataPrefix=rdf (
Acceptance criteria
Wikidata URIs can be dereferenced and generate edm:Agent in the EDM data.
Note 1: the attached mapping uses a conditional mapping to a Concept template. This part must be commented out for this implementation. The implementation will therefore focus on a mapping for Agents entities.
Note 2: After discovering this mapping is impacted by bug https://europeana.atlassian.net/browse/MET-2419 and task https://europeana.atlassian.net/browse/MET-2472 we will release in acceptance/production a version containing the RDA issue. The mapping will be realigned later.