Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jesusbagpuss opened this issue Nov 22, 2023 · 0 comments

Comments

@jesusbagpuss
Copy link

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 |
+--------------------+--------------------------------------------------+--------------------------------------------------+------------+--------------------------------------+-------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant