Skip to content

Develop #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 30, 2025
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
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ __Note that app installation scripts are not idempotent. Subsequent runs might c
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/imports/csv/" target="_blank">Import from CSV</a></dd>
<dt>Lines of code</dt>
<dd>0 lines of imperative code</dd>
<dd>570 lines of SPARQL</dd>
<dd>247 lines of installation shell scripts</dd>
<dd>681 lines of SPARQL</dd>
<dd>951 lines of installation shell scripts</dd>
</dl>

### City Graph
Expand All @@ -65,8 +65,8 @@ __Note that app installation scripts are not idempotent. Subsequent runs might c
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/imports/csv/" target="_blank">Import from CSV</a></dd>
<dt>Lines of code</dt>
<dd>0 lines of imperative code</dd>
<dd>479 lines of SPARQL</dd>
<dd>342 lines of installation shell scripts</dd>
<dd>535 lines of SPARQL</dd>
<dd>488 lines of installation shell scripts</dd>
</dl>

### SKOS
Expand Down Expand Up @@ -105,14 +105,14 @@ services:
-->
<dt>Features</dt>
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/stylesheets/" target="_blank">Custom stylesheet</a></dd>
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/administration/model/#classes" target="_blank">Classes</a></dd>
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/administration/model/#constructors" target="_blank">Constructors</a></dd>
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/administration/model/#constraints" target="_blank">Constraints</a></dd>
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/administration/ontologies/#classes" target="_blank">Classes</a></dd>
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/administration/ontologies/#constructors" target="_blank">Constructors</a></dd>
<dd><a href="https://atomgraph.github.io/LinkedDataHub/linkeddatahub/docs/reference/administration/ontologies/#constraints" target="_blank">Constraints</a></dd>
<dt>Lines of code</dt>
<dd>0 lines of imperative code</dd>
<dd>44 lines of SPARQL</dd>
<dd>324 lines of installation shell scripts</dd>
<dd>109 lines of XSLT stylesheet</dd>
<dd>107 lines of SPARQL</dd>
<dd>499 lines of installation shell scripts</dd>
<dd>60 lines of XSLT stylesheet</dd>
</dl>

__You need to request append/write access to be able to create/edit the data.__
1,417 changes: 0 additions & 1,417 deletions demo/city-graph/files/postal-areas.csv

This file was deleted.

12 changes: 6 additions & 6 deletions demo/city-graph/queries/imports/copenhagen/bicycle-parkings.rq
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ CONSTRUCT
}
WHERE
{
?bicyleParking <#FID> ?id ;
?bicyleParking_row <#FID> ?id ;
<#lat> ?lat_string ;
<#long> ?long_string .

OPTIONAL
{ ?bicyleParking <#name> ?name }
{ ?bicyleParking_row <#name> ?name }
OPTIONAL
{ ?bicyleParking <#bydel> ?city }
{ ?bicyleParking_row <#bydel> ?city }
OPTIONAL
{ ?bicyleParking <#vejnavn> ?address }
{ ?bicyleParking_row <#vejnavn> ?address }
OPTIONAL
{ ?bicyleParking <#antal_pladser> ?spaces }
{ ?bicyleParking_row <#antal_pladser> ?spaces }

BIND(uri(concat(str($base), "copenhagen/bicycle-parkings/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?bicyleParking)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)

}
16 changes: 8 additions & 8 deletions demo/city-graph/queries/imports/copenhagen/charging-stations.rq
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@ CONSTRUCT
}
WHERE
{
?charger <#FID> ?id ;
?charger_row <#FID> ?id ;
<#lat> ?lat_string ;
<#long> ?long_string .

OPTIONAL
{ ?charger <#name> ?name }
{ ?charger_row <#name> ?name }
OPTIONAL
{ ?charger <#chargeType> ?chargeType }
{ ?charger_row <#chargeType> ?chargeType }
OPTIONAL
{ ?charger <#address> ?address }
{ ?charger_row <#address> ?address }
OPTIONAL
{ ?charger <#antal_udtag> ?spaces }
{ ?charger_row <#antal_udtag> ?spaces }
OPTIONAL
{ ?charger <#operator> ?operator }
{ ?charger_row <#operator> ?operator }
OPTIONAL
{ ?charger <#bem> ?information }
{ ?charger_row <#bem> ?information }

BIND(uri(concat(str($base), "copenhagen/charging-stations/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?charger)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)

}
7 changes: 4 additions & 3 deletions demo/city-graph/queries/imports/copenhagen/libraries.rq
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CONSTRUCT
}
WHERE
{
?library <#FID> ?id ;
?library_row <#FID> ?id ;
<#name> ?name ;
<#address> ?address ;
<#lat> ?lat_string ;
Expand All @@ -42,17 +42,18 @@ WHERE

OPTIONAL
{
?library <#email> ?emailString
?library_row <#email> ?emailString
BIND (URI(CONCAT(STR(<mailto:>), ?emailString)) AS ?email)
}
OPTIONAL
{
?library <#link> ?linkString
?library_row <#link> ?linkString
BIND (URI(?linkString) AS ?link)
}

BIND(uri(concat(str($base), "copenhagen/libraries/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?library)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CONSTRUCT
}
WHERE
{
?parking <#FID> ?id ;
?parking_row <#FID> ?id ;
<#name> ?name ;
<#address> ?address ;
<#lat> ?lat_string ;
Expand All @@ -44,18 +44,19 @@ WHERE
<#information> ?information ;
<#long> ?long_string .
{
?parking <#owner> 'Privat' .
?parking_row <#owner> 'Privat' .
BIND(BNODE() AS ?owner)
BIND(schema:Corporation AS ?ownerType)
}
UNION
{
?parking <#owner> 'Kommune' .
?parking_row <#owner> 'Kommune' .
BIND (<http://www.wikidata.org/entity/Q504125> AS ?owner) # Copenhagen Municipality
}

BIND(uri(concat(str($base), "copenhagen/parking-facilities/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?parking)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)
BIND(xsd:integer(?spaces_string) AS ?spaces)
Expand Down
5 changes: 3 additions & 2 deletions demo/city-graph/queries/imports/copenhagen/places.rq
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ CONSTRUCT
}
WHERE
{
?place <#FID> ?id ;
?place_row <#FID> ?id ;
<#name> ?name ;
<#lat> ?lat_string ;
<#long> ?long_string

OPTIONAL
{ ?place <#category> ?category_name }
{ ?place_row <#category> ?category_name }

BIND(uri(concat(str($base), "copenhagen/places/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?place)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)
}
13 changes: 7 additions & 6 deletions demo/city-graph/queries/imports/copenhagen/playgrounds.rq
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,27 @@ CONSTRUCT
}
WHERE
{
?playground <#FID> ?id ;
?playground_row <#FID> ?id ;
<#name> ?name ;
<#address_description> ?address_description ;
<#lat> ?lat_string ;
<#long> ?long_string .

OPTIONAL
{ ?playground <#area> ?area}
{ ?playground_row <#area> ?area}
OPTIONAL
{ ?playground <#playground_type> ?playground_type}
{ ?playground_row <#playground_type> ?playground_type}
OPTIONAL
{ ?playground <#age_group> ?age_group}
{ ?playground_row <#age_group> ?age_group}
OPTIONAL
{ ?playground <#description> ?description}
{ ?playground_row <#description> ?description}
OPTIONAL
{ ?playground <#link> ?linkString
{ ?playground_row <#link> ?linkString
BIND (URI(?linkString) AS ?link)}

BIND(uri(concat(str($base), "copenhagen/playgrounds/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?playground)
BIND(xsd:float(?lat_string) AS ?lat) .
BIND(xsd:float(?long_string) AS ?long) .
}
15 changes: 8 additions & 7 deletions demo/city-graph/queries/imports/copenhagen/public-toilets.rq
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,22 @@ CONSTRUCT
}
WHERE
{
?toilet <#FID> ?id ;
?toilet_row <#FID> ?id ;
<#title> ?name ;
<#adresse> ?address ;
<#latitude> ?lat_string ;
<#longitude> ?long_string .

OPTIONAL { ?toilet <#postnr> ?postcode }
OPTIONAL { ?toilet <#toilet_type> ?toiletType }
OPTIONAL { ?toilet <#handicapadgang> ?accessible }
OPTIONAL { ?toilet <#placering> ?location }
OPTIONAL { ?toilet <#aabningstid_bemrk> ?comment }
OPTIONAL { ?toilet <#opening_hours> ?openingHours }
OPTIONAL { ?toilet_row <#postnr> ?postcode }
OPTIONAL { ?toilet_row <#toilet_type> ?toiletType }
OPTIONAL { ?toilet_row <#handicapadgang> ?accessible }
OPTIONAL { ?toilet_row <#placering> ?location }
OPTIONAL { ?toilet_row <#aabningstid_bemrk> ?comment }
OPTIONAL { ?toilet_row <#opening_hours> ?openingHours }

BIND(uri(concat(str($base), "copenhagen/public-toilets/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?toilet)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)
}
5 changes: 3 additions & 2 deletions demo/city-graph/queries/imports/copenhagen/schools.rq
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CONSTRUCT
}
WHERE
{
?school <#FID> ?id ;
?school_row <#FID> ?id ;
<#navn> ?name ;
<#address> ?address ;
<#omraade> ?region ;
Expand All @@ -44,12 +44,13 @@ WHERE

OPTIONAL
{
?school <#link> ?linkString
?school_row <#link> ?linkString
BIND (URI(?linkString) AS ?link)
}

BIND (uri(concat(str($base), "copenhagen/schools/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?school)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)
}
7 changes: 4 additions & 3 deletions demo/city-graph/queries/imports/copenhagen/sports-centers.rq
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,25 @@ CONSTRUCT
}
WHERE
{
?sportCenter <#FID> ?id ;
?sportCenter_row <#FID> ?id ;
<#name> ?name ;
<#address> ?address ;
<#lat> ?lat_string ;
<#postcode> ?postcode ;
<#long> ?long_string .

OPTIONAL {
?sportCenter <#email> ?emailString
?sportCenter_row <#email> ?emailString
BIND (URI(CONCAT(STR(<mailto:>), ?emailString)) AS ?email)
}
OPTIONAL {
?sportCenter <#link> ?linkString
?sportCenter_row <#link> ?linkString
BIND (URI(?linkString) AS ?link)
}

BIND(uri(concat(str($base), "copenhagen/sports-centers/")) AS ?container)
BIND(uri(concat(str(?container), encode_for_uri(?id), "/")) AS ?item)
BIND(uri(concat(str(?item), "#this")) AS ?sportCenter)
BIND(xsd:float(?lat_string) AS ?lat)
BIND(xsd:float(?long_string) AS ?long)
}
42 changes: 0 additions & 42 deletions demo/city-graph/queries/imports/postal-areas.rq

This file was deleted.

4 changes: 2 additions & 2 deletions demo/city-graph/root.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@prefix sioc: <http://rdfs.org/sioc/ns#> .

<> a def:Root ;
dct:title "Root" ;
dct:title "City Graph" ;
dct:description "Geospatial and other open data about cities, imported by transforming CSV files to RDF" ;
rdf:_1 <#page-header> ;
rdf:_2 <#main-library> ;
Expand All @@ -31,7 +31,7 @@
</div>"""^^rdf:XMLLiteral .

<#main-library> a ldh:Object ;
rdf:value <copenhagen/places/stednavn_punkt.fid-361ad8c1_150a94a2aab_-83b/> ;
rdf:value <copenhagen/places/stednavn_punkt.fid-361ad8c1_150a94a2aab_-83b/#this> ;
ac:mode ac:MapMode .

<#charts> a ldh:XHTML ;
Expand Down
2 changes: 1 addition & 1 deletion demo/northwind-traders/root.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@prefix spin: <http://spinrdf.org/spin#> .

<> a def:Root ;
dct:title "Root" ;
dct:title "Northwind Traders" ;
dct:description "Knowledge Graph representation of the Northwind Traders sample database" ;
rdf:_1 <#page-header> ;
rdf:_2 <#top-selling-products> ;
Expand Down
Empty file removed demo/skos/docker-compose.yml
Empty file.
Loading