Skip to content

Commit fe997c4

Browse files
Kg generation and old kg deletion (#86)
* updated documentation and CLI input * improved documentation * parallelised kg_conversion * added example KG * excluded ireal forum from kg_generation * updated query with SHA URIs * query bug fixing * kg CLI commands * kg first version up * updated commands * updated URI rules * kg version 2 up * bug fixing sparql query * kg version 3 up * Update partitions and conversions data (#81) * article data stats * added test file for converters stats * converters stats first version up * updated converter_instances.py * updated converter_commands.sh * regenerated roman numeral conversions * bug fixing roman converter * updated expert validation * bug fixing lark converter * bug fixing prettify harte * final bug fixing in converter * bug fixing nottingham * regenerated all partitions * updated converters stats Co-authored-by: Jacopo de Berardinis <jonnybluesman@gmail.com> * regenerated kg version 4 * updated kg_generation.py * updated query and bug fixing in kg_generation * knowledge graph version 5 * query bug fixing * added knowledge graph v6 * reformat query * query major update * updated kg_generation.py and bug fixing * updated query and bug fixing * generated new knowledge graphs * regenerated knowledge-graph * query refinement and previous version of kg deletion Co-authored-by: Jacopo de Berardinis <jonnybluesman@gmail.com>
1 parent 4343faa commit fe997c4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

choco/kg-generation/queries/jams_ontology.sparql

+7-8
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ WHERE {
216216
(xsd:int(STRAFTER(STR(?annotation_time_float), "."))),
217217
xsd:int(0)) AS ?annotation_time_beat)
218218
?annotation_properties xyz:data ?data .
219-
#BIND (IF (?namespace = "key_mode", jams:ScoreKeyModeOccurrence, jams:ScoreChordOccurrence) AS ?occurrence_type )
220219

221220
#####################
222221
# ANNOTATION METADATA
@@ -288,8 +287,8 @@ WHERE {
288287
BIND (IF (?namespace = "chord_roman", URI(CONCAT(STR(roman:chord), "/", ?observation_value)), IF (CONTAINS(?namespace, "chord"), URI(CONCAT(STR(chord:symbol), "/", ?observation_value)), "")) as ?chord_equivalence)
289288

290289
OPTIONAL {
291-
FILTER (?object_type = "score")
292-
BIND (jams:hasValue as ?measure_has_value)
290+
FILTER (?object_type = "score")
291+
BIND (jams:hasValue as ?measure_has_value)
293292
}
294293

295294
BIND (IF (?object_type = "score", ?annotation_time_beat, ?annotation_time_float) AS ?annotation_time_first_component)
@@ -301,16 +300,16 @@ WHERE {
301300
?x xyz:file_metadata ?file_meta .
302301
?file_meta xyz:title ?title .
303302
OPTIONAL {?file_meta xyz:jams_version ?jams_version .}
304-
?file_meta xyz:identifiers ?ids .
303+
?file_meta xyz:identifiers ?ids .
305304
OPTIONAL {?ids xyz:music_brainz ?mb_id .}
306305
OPTIONAL {?ids xyz:discogs ?discogs_id .}
307306
OPTIONAL {?ids xyz:perlam ?perlam_id .}
308307
OPTIONAL {?file_meta xyz:duration ?duration .}
309-
?file_meta xyz:release ?release_string .
308+
?file_meta xyz:release ?release_string .
310309
OPTIONAL {
311-
FILTER (?duration != "")
312-
BIND (?release_string AS ?release)
313-
}
310+
FILTER (?duration != "")
311+
BIND (?release_string AS ?release)
312+
}
314313
}
315314

316315
# URIs

0 commit comments

Comments
 (0)