Skip to content

Commit

Permalink
update requests
Browse files Browse the repository at this point in the history
  • Loading branch information
guillotel-nothmann committed Sep 2, 2024
1 parent 79f0a05 commit ad06ccf
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripts/queries/annotationsWithMoreThan1Author.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX sherlock: <http://data-iremus.huma-num.fr/ns/sherlock#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX iremus: <http://data-iremus.huma-num.fr/id/>

SELECT ?individual (GROUP_CONCAT(DISTINCT ?name; SEPARATOR=", ") AS ?authors) (GROUP_CONCAT(DISTINCT ?note; SEPARATOR=", ") AS ?notes)
FROM <http://data-iremus.huma-num.fr/graph/sherlock>
FROM <http://data-iremus.huma-num.fr/graph/users>
WHERE {

iremus:{ID DU PROJET} crm:P9_consists_of ?assignment.
?assignment crm:P177_assigned_property_of_type crm:P2_has_type.
?assignment crm:P140_assigned_attribute_to ?individual.

?link crm:P141_assigned ?individual.

?link crm:P140_assigned_attribute_to ?noteUri.
BIND(STRAFTER(STR(?noteUri), "#") AS ?note)

?assignment dcterms:creator ?creator.

?creator crm:P1_is_identified_by ?identifier.
?identifier crm:P2_has_type iremus:73ea8d74-3526-4f6a-8830-dd369795650d.
?identifier crm:P190_has_symbolic_content ?name.
}
GROUP BY ?individual
HAVING (COUNT(DISTINCT ?creator) > 1)
30 changes: 30 additions & 0 deletions scripts/queries/annotationsWithMoreThanOneContributor.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
### Select annotations with concepts and/or comments from more than 1 contributor

PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX sherlock: <http://data-iremus.huma-num.fr/ns/sherlock#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX iremus: <http://data-iremus.huma-num.fr/id/>

SELECT ?individual (GROUP_CONCAT(DISTINCT ?name; SEPARATOR=",") AS ?authors) (GROUP_CONCAT(DISTINCT ?note; SEPARATOR=",") AS ?notes) (GROUP_CONCAT(DISTINCT ?conceptOrComment; SEPARATOR="$") AS ?conceptsOrComments)
FROM <http://data-iremus.huma-num.fr/graph/sherlock>
FROM <http://data-iremus.huma-num.fr/graph/users>
WHERE {

iremus:{PROJECT} crm:P9_consists_of ?assignment.
?assignment crm:P177_assigned_property_of_type crm:P2_has_type.
?assignment crm:P140_assigned_attribute_to ?individual.
?assignment crm:P141_assigned ?conceptOrComment.

?link crm:P141_assigned ?individual.

?link crm:P140_assigned_attribute_to ?noteUri.
BIND(STRAFTER(STR(?noteUri), "#") AS ?note)

?assignment dcterms:creator ?creator.

?creator crm:P1_is_identified_by ?identifier.
?identifier crm:P2_has_type iremus:73ea8d74-3526-4f6a-8830-dd369795650d.
?identifier crm:P190_has_symbolic_content ?name.
}
GROUP BY ?individual
HAVING (COUNT(DISTINCT ?creator) > 1)
26 changes: 26 additions & 0 deletions scripts/queries/getAnnotationsWithSpecificConcept.qr
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX iremus: <http://data-iremus.huma-num.fr/id/>
PREFIX sherlock: <http://data-iremus.huma-num.fr/ns/sherlock#>
PREFIX cadences: <https://w3id.org/polifonia/ontology/modal-tonal/Cadences_FilaberGuillotelGurrieri_2023/>

SELECT ?E13 (GROUP_CONCAT(DISTINCT ?docContext; SEPARATOR=",") AS ?scoreURI) (GROUP_CONCAT(DISTINCT ?E7; SEPARATOR=",") AS ?projectID) (GROUP_CONCAT(DISTINCT ?note; SEPARATOR=",") AS ?notes) (GROUP_CONCAT(DISTINCT ?concept; SEPARATOR=",") AS ?concepts)


FROM <http://data-iremus.huma-num.fr/graph/sherlock>
FROM <http://data-iremus.huma-num.fr/graph/users>
WHERE {
?project crm:P9_consists_of ?E13.
?E13 sherlock:has_document_context ?docContext.
?E13 crm:P177_assigned_property_of_type crm:P2_has_type.
?E13 crm:P141_assigned cadences:Bassizans_P.
?E13 crm:P141_assigned ?concept.
?E7 crm:P9_consists_of ?E13.

?E13 crm:P140_assigned_attribute_to ?E28.
?E13_P67 crm:P141_assigned ?E28.

?E13_P67 crm:P140_assigned_attribute_to ?noteUri.
BIND(STRAFTER(STR(?noteUri), "#") AS ?note)

}
GROUP BY ?E13
16 changes: 16 additions & 0 deletions scripts/queries/getSpecificConcept.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX iremus: <http://data-iremus.huma-num.fr/id/>
PREFIX sherlock: <http://data-iremus.huma-num.fr/ns/sherlock#>
PREFIX cadences: <https://w3id.org/polifonia/ontology/modal-tonal/Cadences_FilaberGuillotelGurrieri_2023/>

SELECT DISTINCT ?project ?docContext ?concept
FROM <http://data-iremus.huma-num.fr/graph/sherlock>
FROM <http://data-iremus.huma-num.fr/graph/users>
WHERE {
?project crm:P9_consists_of ?E13.
?E13 sherlock:has_document_context ?docContext.
?E13 crm:P177_assigned_property_of_type crm:P2_has_type.
?E13 crm:P141_assigned cadences:Bassizans_P.
?E13 crm:P141_assigned ?concept.

}
13 changes: 13 additions & 0 deletions scripts/queries/getWorkURL.rq
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX iremus: <http://data-iremus.huma-num.fr/id/>
PREFIX sherlock: <http://data-iremus.huma-num.fr/ns/sherlock#>

SELECT DISTINCT ?project ?docContext
FROM <http://data-iremus.huma-num.fr/graph/sherlock>
FROM <http://data-iremus.huma-num.fr/graph/users>
WHERE {
VALUES ?project {iremus:{PROJECT}}.
?project crm:P9_consists_of ?E13.
?E13 sherlock:has_document_context ?docContext

}

0 comments on commit ad06ccf

Please sign in to comment.