File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed
migration/v12.0/queries/action Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
- prefix gist: <https://ontologies.semanticarts.com/gist/>
1
+ PREFIX gist: <https://ontologies.semanticarts.com/gist/>
2
2
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX ex: <https://www.example.org/>
4
+
5
+ # This query will find instances of gist:Percentage as used in gist v11
6
+ # and change them to instances of gist:Magnitude as used in gist v12.
7
+ # However, you probably will want instances URIs to be different than what
8
+ # this query will create, so review the BIND() below and change as needed.
3
9
4
10
DELETE {
5
11
?s ?p ?percentage .
@@ -37,5 +43,5 @@ WHERE {
37
43
}
38
44
# new gist:Magnitude using hash of percentage for iri
39
45
# duplicates from union will be the same object from hash of percentage
40
- BIND(IRI(CONCAT(STR(gist:Magnitude ), " - " , SHA256(STR(?percentage))))AS ?magnitude)
46
+ BIND(IRI(CONCAT(STR(ex:_Magnitude_ ), SHA256(STR(?percentage)))) AS ?magnitude)
41
47
}
Original file line number Diff line number Diff line change 1
- prefix gist: <https://ontologies.semanticarts.com/gist/>
1
+ PREFIX gist: <https://ontologies.semanticarts.com/gist/>
2
2
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
+ PREFIX ex: <https://www.example.org/>
4
+
5
+ # This query will find instances of gist:Percentage as used in gist v11
6
+ # and change them to instances of gist:Magnitude as used in gist v12.
7
+ # However, you probably will want instances URIs to be different than what
8
+ # this query will create, so review the BIND() below and change as needed.
3
9
4
10
DELETE {
5
11
GRAPH ?g {
@@ -45,5 +51,5 @@ WHERE {
45
51
}
46
52
# new gist:Magnitude using hash of percentage for iri
47
53
# duplicates from union will be the same object from hash of percentage
48
- BIND(IRI(CONCAT(STR(gist:Magnitude ), " - " , SHA256(STR(?percentage))))AS ?magnitude)
54
+ BIND(IRI(CONCAT(STR(ex:_Magnitude_ ), SHA256(STR(?percentage)))) AS ?magnitude)
49
55
}
You can’t perform that action at this time.
0 commit comments