Skip to content

RDF integration creates incorrect assertion that an orcid-less author is owl:sameAs http://orcid.org/ ! #80

Description

@jesusbagpuss

Under v3.3.16 (and probably later), if an author doesn't have an ORCID, when the 'people' triples are generated, people without an ORCID are presented as owl:sameAs http://orcid.org/

$e_orcid = "http://orcid.org/" . $all_people->{$person_uri}->{orcid} if defined $all_people->{$person_uri}->{orcid};

The defined above should be EPrints::Utils::is_set.

Caution when running queries against the triples table, only the tripleid, primary_resource and secondary_resource columns are indexed. The triple table contains a lot of rows. Running a query that doesn't contain one of the indexed columns can be long-running.

To find examples triples, find an EPrint with multiple authors, some who do, and some who don't have ORCIDs.
Run the following query, altering the primary_resource to match your selected EPrint ID:

mysql> SELECT primary_resource, secondary_resource, subject, predicate, object, type 
  FROM triple 
  WHERE primary_resource = 'epid:eprint/205746' AND predicate = 'owl:sameAs' AND type = 'foaf:Person' LIMIT 20;
+--------------------+--------------------------------------------------+--------------------------------------------------+------------+--------------------------------------+-------------+
| primary_resource   | secondary_resource                               | subject                                          | predicate  | object                               | type        |
+--------------------+--------------------------------------------------+--------------------------------------------------+------------+--------------------------------------+-------------+
| epid:eprint/205746 | epid:person/ext-25ebb8c09ef522884f79d6718983dc84 | epid:person/ext-25ebb8c09ef522884f79d6718983dc84 | owl:sameAs | http://orcid.org/0000-0002-6619-4560 | foaf:Person |
| epid:eprint/205746 | epid:person/ext-e5fabd69fbd3a769f67ce2b8ebe8b930 | epid:person/ext-e5fabd69fbd3a769f67ce2b8ebe8b930 | owl:sameAs | http://orcid.org/                    | foaf:Person |
| epid:eprint/205746 | epid:person/ext-883ceb14b6692b4f4ee7a13c642fdcfb | epid:person/ext-883ceb14b6692b4f4ee7a13c642fdcfb | owl:sameAs | http://orcid.org/                    | foaf:Person |
| epid:eprint/205746 | epid:person/ext-6c69404de6ba5c40ac8d6e248ce0d903 | epid:person/ext-6c69404de6ba5c40ac8d6e248ce0d903 | owl:sameAs | http://orcid.org/                    | foaf:Person |
| epid:eprint/205746 | epid:person/ext-69eb92a466fb0d58ae6ad625b7a75208 | epid:person/ext-69eb92a466fb0d58ae6ad625b7a75208 | owl:sameAs | http://orcid.org/                    | foaf:Person |
+--------------------+--------------------------------------------------+--------------------------------------------------+------------+--------------------------------------+-------------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions