@@ -69,17 +69,17 @@ WHERE {
6969 {% if preview_object_property == " " and preview_property == " " %}
7070 # fall back to known labels if no preview property
7171 optional {
72- ?instance rdfs:label ?rdfsLabel{{lang|title}} .
72+ ?newInstance rdfs:label ?rdfsLabel{{lang|title}} .
7373 FILTER(LANG(?rdfsLabel{{lang|title}}) = " " || LANGMATCHES(LANG(?rdfsLabel{{lang|title}}), " {{ lang }}" ))
7474 }
7575
7676 optional {
77- ?instance skos:prefLabel ?skosLabel{{lang|title}} .
77+ ?newInstance skos:prefLabel ?skosLabel{{lang|title}} .
7878 FILTER(LANG(?skosLabel{{lang|title}}) = " " || LANGMATCHES(LANG(?skosLabel{{lang|title}}), " {{ lang }}" ))
7979 }
8080
8181 optional {
82- ?instance shacl:name ?shaclName{{lang|title}} .
82+ ?newInstance shacl:name ?shaclName{{lang|title}} .
8383 FILTER(LANG(?shaclName{{lang|title}}) = " " || LANGMATCHES(LANG(?shaclName{{lang|title}}), " {{ lang }}" ))
8484 }
8585
@@ -101,11 +101,11 @@ WHERE {
101101 {% if preview_object_property == " " and preview_property == " " %}
102102 # fall back to alternative labels if no preview property
103103 {
104- SELECT ?instance (SAMPLE (?prefLabel) as ?prefLabelRandom)
104+ SELECT ?newInstance (SAMPLE (?prefLabel) as ?prefLabelRandom)
105105 {
106- ?instance shacl:name|skos:prefLabel|rdfs:label ?prefLabel .
106+ ?newInstance shacl:name|skos:prefLabel|rdfs:label ?prefLabel .
107107 }
108- GROUP BY ?instance order by ?prefLabel
108+ GROUP BY ?newInstance order by ?prefLabel
109109 }
110110 {% elif preview_object_property == " " %}
111111 {
@@ -142,17 +142,17 @@ WHERE {
142142 {% if preview_object_property == " " and preview_property == " " %}
143143 # fall back to known labels if no preview property
144144 optional {
145- ?instance rdfs:label ?rdfsLabel{{lang|title}} .
145+ ?oldInstance rdfs:label ?rdfsLabel{{lang|title}} .
146146 FILTER(LANG(?rdfsLabel{{lang|title}}) = " " || LANGMATCHES(LANG(?rdfsLabel{{lang|title}}), " {{ lang }}" ))
147147 }
148148
149149 optional {
150- ?instance skos:prefLabel ?skosLabel{{lang|title}} .
150+ ?oldInstance skos:prefLabel ?skosLabel{{lang|title}} .
151151 FILTER(LANG(?skosLabel{{lang|title}}) = " " || LANGMATCHES(LANG(?skosLabel{{lang|title}}), " {{ lang }}" ))
152152 }
153153
154154 optional {
155- ?instance shacl:name ?shaclName{{lang|title}} .
155+ ?oldInstance shacl:name ?shaclName{{lang|title}} .
156156 FILTER(LANG(?shaclName{{lang|title}}) = " " || LANGMATCHES(LANG(?shaclName{{lang|title}}), " {{ lang }}" ))
157157 }
158158
0 commit comments