Get OpenAIRE research product relations
type: Nanopublication
has assertion: assertion
has provenance: provenance
has publication info: pubinfo
created: 2026-07-28T12:30:05Z
creator: Tobias Kuhn
license: https://creativecommons.org/licenses/by/4.0/
embeds: Get OpenAIRE research product relations

Get OpenAIRE research product relations
type: grlc-query
description: Returns the contributed typed relations between two research products, with labels and contributor, excluding retracted or superseded nanopublications (example nanopublications are included).
license: LICENSE-2.0
sparql: prefix np: <http://www.nanopub.org/nschema#> prefix npa: <http://purl.org/nanopub/admin/> prefix npx: <http://purl.org/nanopub/x/> prefix nt: <https://w3id.org/np/o/ntemplate/> prefix dct: <http://purl.org/dc/terms/> prefix foaf: <http://xmlns.com/foaf/0.1/> select ?subject ?subject_label ?relation ?relation_label ?object ?object_label ?creator ?creator_label ?date ?np ("^" as ?np_label) where { graph npa:graph { ?np npa:hasValidSignatureForPublicKeyHash ?pk . filter not exists { ?inp npx:invalidates ?np ; npa:hasValidSignatureForPublicKeyHash ?pk . } filter not exists { ?sup npx:supersedes ?np . } ?np dct:created ?date . ?np np:hasAssertion ?a . ?np np:hasPublicationInfo ?pi . } values (?relation ?relation_label) { (<http://purl.org/spar/cito/cites> "cites") (<http://purl.org/spar/cito/isDocumentedBy> "is documented by") (<http://purl.org/vocab/frbr/core#partOf> "is part of") (<http://purl.org/vocab/frbr/core#revisionOf> "is a revision of") (<http://purl.org/vocab/frbr/core#supplement> "is supplemented by") (<http://www.w3.org/2004/02/skos/core#exactMatch> "is the same work as") (<http://www.w3.org/ns/prov#wasDerivedFrom> "was derived from") } graph ?a { ?subject ?relation ?object . } filter( ( strstarts(str(?subject), "https://doi.org/") || strstarts(str(?subject), "https://api.openaire.eu/") ) && ( strstarts(str(?object), "https://doi.org/") || strstarts(str(?object), "https://api.openaire.eu/") ) ) optional { graph ?pi { ?subject nt:hasLabelFromApi ?subject_label . } } optional { graph ?pi { ?object nt:hasLabelFromApi ?object_label . } } optional { graph npa:graph { ?np dct:creator ?creator . } } optional { graph ?pi { ?creator foaf:name ?creator_label . } } } order by desc(?date)

sig
has algorithm: RSA
signed by: Tobias Kuhn