References for: get-nanopubs-for-paper
Full identifier: https://w3id.org/np/RAYpDxlvfo1aQjF5n0M_A4LtNouxNmgNGtspf2uT9ewm8#get-nanopubs-for-paper
Nanopublication | Part | Subject | Predicate | Object | Published By | Published On |
---|---|---|---|---|---|---|
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-nanopubs-for-paper
|
Tobias Kuhn
|
2024-09-11T13:03:35.823Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-nanopubs-for-paper
|
Tobias Kuhn
|
2024-09-11T13:03:35.823Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-nanopubs-for-paper
|
Get nanopublications refering to a given paper
|
Tobias Kuhn
|
2024-09-11T13:03:35.823Z
|
||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-nanopubs-for-paper
|
This query returns all the nanopublications that refer to (e.g. annotate) a given paper.
|
Tobias Kuhn
|
2024-09-11T13:03:35.823Z
|
||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-nanopubs-for-paper
|
Tobias Kuhn
|
2024-09-11T13:03:35.823Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-nanopubs-for-paper
|
prefix np: <http://www.nanopub.org/nschema#>
prefix npa: <http://purl.org/nanopub/admin/>
prefix npx: <http://purl.org/nanopub/x/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dct: <http://purl.org/dc/terms/>
prefix oa: <http://www.w3.org/ns/oa#>
select distinct ?np ?user ?type ?subj ?subjLabel ?rel ?relLabel ?text ?selection ?date where {
graph npa:graph {
?np np:hasAssertion ?a .
?np np:hasPublicationInfo ?i.
?np dct:created ?date .
?np dct:creator ?user .
?np npa:hasValidSignatureForPublicKey ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }
}
graph ?a {
?subj ?rel ?_paper_iri .
}
optional { ?a rdfs:comment ?textPre . bind(str(?textPre) as ?text) }
optional { graph <http://purl.org/np/RA6d0qLmlRdXd-ubre83LxP22auJdJjXGzaW3W3qH4Neo#assertion> {
?rel rdfs:label ?relLabelPre .
bind("cito" as ?typePre)
} }
optional { graph ?a {
?annotation oa:hasTarget ?annotationtarget ;
oa:hasBody ?annotationbody .
?annotationbody rdf:value ?annotationtext .
?annotationtarget oa:hasSource ?_paper_iri ;
oa:hasSelector ?annotationSelector .
optional { ?annotationSelector oa:prefix ?annotatedprefix . }
?annotationSelector oa:exact ?annotatedtext .
optional { ?annotationSelector oa:suffix ?annotatedsuffix . }
bind("oa" as ?typePre)
bind(str(?annotationtext) as ?text)
bind(concat(?annotatedprefix, "<h>", ?annotatedtext, "</h>", ?annotatedsuffix) as ?selection)
} }
bind(replace(str(?subj), '^.*?([a-zA-Z0-9\-\_]+)$', '$1') as ?subjLabel).
bind(coalesce(str(?relLabelPre), replace(str(?rel), '^.*?([a-zA-Z0-9\-\_]+)$', '$1')) as ?relLabel).
bind(coalesce(?typePre, "other") as ?type).
}
order by desc(?date)
|
Tobias Kuhn
|
2024-09-11T13:03:35.823Z
|
||
links a nanopublication to its pubinfo
http://www.nanopub.org/nschema#hasPublicationInfo
pubinfo
|
get-nanopubs-for-paper
|
Tobias Kuhn
|
2024-09-11T13:03:35.823Z
|