Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dqgen/resources/asciidoc_templates/statistics.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

[cols="1,1,1,1,1,1,1", options="header"]
|===
|Property group
|Category
|Property
|Added
|Deleted
Expand Down
2 changes: 1 addition & 1 deletion dqgen/resources/html_templates/statistics.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<table class="display">
<thead class="center aligned">
<tr>
<th>Property group</th>
<th>Category</th>
<th>Property</th>
<th>Added</th>
<th>Deleted</th>
Expand Down
4 changes: 2 additions & 2 deletions dqgen/resources/query_templates/instance_additions.rq
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
# identify added instances
{% if cls == "owl:ObjectProperty" or cls == "owl:DatatypeProperty" %}
SELECT distinct ?class ?instance ?prefLabel ?prefLabelLang ?domain ?range ?minCardinality ?maxCardinality ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?domain ?range ?minCardinality ?maxCardinality
{% else %}
SELECT distinct ?class ?instance ?prefLabel ?prefLabelLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang)
{% endif %}
WHERE {
GRAPH ?versionHistoryGraph {
Expand Down
2 changes: 1 addition & 1 deletion dqgen/resources/query_templates/instance_deletions.rq
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
# as bad practice, because they still may be referenced elsewhere.
# Cosider using owl:deprecated instead)

SELECT distinct ?class ?instance ?prefLabel ?prefLabelLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang)
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
7 changes: 4 additions & 3 deletions dqgen/resources/query_templates/movement_cross_instance.rq
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX shacl: <http://www.w3.org/ns/shacl#>

# Show all movements cross instances
SELECT DISTINCT ?oldInstance ?class ?oldInstancePrefLabel ?oldInstancePrefLabelLang ?newInstance
?newInstancePrefLabel
?newInstancePrefLabelLang ?property ?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT
(?oldInstance AS ?oldResource) (?oldInstancePrefLabel AS ?oldResourceLabel) (?oldInstancePrefLabelLang AS ?oldResourceLabelLang)
(?newInstance AS ?newResource) (?newInstancePrefLabel AS ?newResourceLabel) (?newInstancePrefLabelLang AS ?newResourceLabelLang)
?property ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
2 changes: 1 addition & 1 deletion dqgen/resources/query_templates/movement_cross_property.rq
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX shacl: <http://www.w3.org/ns/shacl#>

# Show all movements cross property
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?oldProperty ?newProperty ?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?oldProperty ?newProperty ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
2 changes: 1 addition & 1 deletion dqgen/resources/query_templates/property_additions.rq
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

# Show all added instance/property
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?property ?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?property ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
2 changes: 1 addition & 1 deletion dqgen/resources/query_templates/property_deletions.rq
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PREFIX sd: <http://www.w3.org/ns/sparql-service-description#>
PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
# Show all deleted instance/property
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?property ?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?property ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
3 changes: 1 addition & 2 deletions dqgen/resources/query_templates/property_value_updates.rq
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

# Show all properties value updates
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?property ?oldValue ?oldValueLang ?newValue ?newValueLang
("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?property ?oldValue ?oldValueLang ?newValue ?newValueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

# Show all movements cross instance for reified structures
SELECT DISTINCT ?oldInstance ?class ?oldInstancePrefLabel ?oldInstancePrefLabelLang ?newInstance ?newInstancePrefLabel
?newInstancePrefLabelLang ?property ?object ?objProperty ?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT
(?oldInstance AS ?oldResource) (?oldInstancePrefLabel AS ?oldResourceLabel) (?oldInstancePrefLabelLang AS ?oldResourceLabelLang)
(?newInstance AS ?newResource) (?newInstancePrefLabel AS ?newResourceLabel) (?newInstancePrefLabelLang AS ?newResourceLabelLang)
?property ?object ?objProperty ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

# Show all movements cross reified properties
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?oldProperty ?oldObject ?newProperty ?newObject ?objProperty
?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?oldProperty ?oldObject ?newProperty ?newObject ?objProperty ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

# Show all added reified structures
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?property ?object ?objProperty ?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?property ?object ?objProperty ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PREFIX sd: <http://www.w3.org/ns/sparql-service-description#>
PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
# Show all deleted reified structures
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?property ?object ?objProperty ?value ?valueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?property ?object ?objProperty ?value ?valueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ PREFIX sh: <http://purl.org/skos-history/>
PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>

# Show reified structures updated values
SELECT DISTINCT ?instance ?class ?prefLabel ?prefLabelLang ?property ?object ?objProperty ?oldValue ?oldValueLang ?newValue ?newValueLang ("{{type_of_action}}" as ?actionType)
SELECT DISTINCT (?instance AS ?resource) (?prefLabel as ?label) (?prefLabelLang AS ?labelLang) ?property ?object ?objProperty ?oldValue ?oldValueLang ?newValue ?newValueLang
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
#
# identify added instances
#
SELECT distinct ?class (?instance AS ?addedInstance) (?prefLabel AS ?addedInstanceLabel)
SELECT distinct (?instance AS ?addedInstance) (?prefLabel AS ?addedInstanceLabel)
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ PREFIX xhv: <http://www.w3.org/1999/xhtml/vocab#>
# as bad practice, because they still may be referenced elsewhere.
# Cosider using owl:deprecated instead)
#
SELECT distinct ?class (?instance AS ?deletedInstance) (?prefLabel AS ?deletedInstanceLabel)
SELECT distinct (?instance AS ?deletedInstance) (?prefLabel AS ?deletedInstanceLabel)
WHERE {
GRAPH ?versionHistoryGraph {
# parameters
Expand Down