|
@@ -39,9 +39,18 @@ PREFIX xopp: <http://ua.be/sdo2l/vocabulary/formalisms/xopp#>
|
|
|
PREFIX federation: <http://ua.be/sdo2l/vocabulary/federation#>
|
|
|
'''
|
|
|
query = '''
|
|
|
-SELECT ?pmArtInstance ?formalism WHERE {
|
|
|
- {{ artifact }} traces:relatesTo ?pmArtInstance .
|
|
|
- ?pmArtInstance base:isDefinedBy ?formalism .
|
|
|
+SELECT DISTINCT ?t_guid ?f_guid ?element ?rel ?va ?location WHERE {
|
|
|
+ ?individual a ?type .
|
|
|
+ ?type rdfs:subClassOf* ftg:Transformation .
|
|
|
+ ?individual base:hasGUID ?t_guid .
|
|
|
+ ?individual ftg:hasOutput ?formalism .
|
|
|
+ ?formalism base:hasGUID ?f_guid .
|
|
|
+ ?formalism pm:occursAsArtifact ?iri .
|
|
|
+ ?element traces:relatesTo ?iri .
|
|
|
+ ?element a ?atype .
|
|
|
+ ?atype rdfs:subClassOf traces:Artifact .
|
|
|
+ OPTIONAL { ?element traces:hasLocation ?location }
|
|
|
+ ?element owl:sameAs {{ artifact }}
|
|
|
}
|
|
|
'''
|
|
|
description = "Find the formalism corresponding to an artifact."
|
|
@@ -49,5 +58,5 @@ visual_support = true
|
|
|
|
|
|
[[replacements]]
|
|
|
placeholder = "artifact"
|
|
|
-suggestion = "art:torque-profile"
|
|
|
+suggestion = "<http://ua.be/sdo2l/description/traces/my_pt#sketch-v1.xopp>"
|
|
|
description = "For which artifact do you want to find the formalism?"
|