References for: get-most-used-templates-last30d
Full identifier: https://w3id.org/np/RAvL7pe2ppsfq4mVWTdJjssYGsjrmliNd_sZO2ytLvg1Y#get-most-used-templates-last30d
Nanopublication | Part | Subject | Predicate | Object | Published By | Published On |
---|---|---|---|---|---|---|
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-most-used-templates-last30d
|
Tobias Kuhn
|
2024-09-24T12:18:41.405Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-most-used-templates-last30d
|
Get the most used templates of the last 30 days
|
Tobias Kuhn
|
2024-09-24T12:18:41.405Z
|
||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-most-used-templates-last30d
|
Tobias Kuhn
|
2024-09-24T12:18:41.405Z
|
|||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-most-used-templates-last30d
|
This query returns the most used assertion templates of the last 30 days, considering the latest versions of these templates.
|
Tobias Kuhn
|
2024-09-24T12:18:41.405Z
|
||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-most-used-templates-last30d
|
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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/>
select ?template_np ?label (sum(?npcount) as ?overallcount) {
{ select ?used_template_np (count(distinct ?np) as ?npcount) where {
graph npa:graph {
?np npa:hasValidSignatureForPublicKey ?pubkey .
filter not exists { ?npx npx:invalidates ?np ; npa:hasValidSignatureForPublicKey ?pubkey . }
?np np:hasPublicationInfo ?i .
}
graph ?i {
?np nt:wasCreatedFromTemplate ?used_template_np .
}
} group by ?used_template_np }
bind(uri(concat("https://w3id.org/np/l/nanopub-query-1.1/repo/type/", sha256(str(nt:AssertionTemplate)))) as ?atservice)
{ service ?atservice {
graph npa:networkGraph {
?template_np npx:supersedes* ?used_template_np .
}
graph npa:graph {
?used_template_np npa:hasValidSignatureForPublicKey ?pubkey .
?template_np npa:hasValidSignatureForPublicKey ?pubkey .
filter not exists { ?template_npx npx:invalidates ?template_np ; npa:hasValidSignatureForPublicKey ?pubkey . }
?used_template_np np:hasAssertion ?a .
}
graph ?a {
?a rdfs:label ?label .
}
} }
} group by ?template_np ?label order by desc(?overallcount) limit 10
|
Tobias Kuhn
|
2024-09-24T12:18:41.405Z
|
||
links a nanopublication to its assertion
http://www.nanopub.org/nschema#hasAssertion
assertion
|
get-most-used-templates-last30d
|
Tobias Kuhn
|
2024-09-24T12:18:41.405Z
|
|||
links a nanopublication to its pubinfo
http://www.nanopub.org/nschema#hasPublicationInfo
pubinfo
|
get-most-used-templates-last30d
|
Tobias Kuhn
|
2024-09-24T12:18:41.405Z
|