This repository was archived by the owner on Mar 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscratch
More file actions
124 lines (103 loc) · 7.52 KB
/
scratch
File metadata and controls
124 lines (103 loc) · 7.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# app configuration
# Velocity library plugin for json handling
json = com.epimorphics.data_api.endpoints.LibJson
# Velocity engine
velocity = com.epimorphics.appbase.templates.VelocityRender
velocity.templates = {webapp}/WEB-INF/templates
velocity.root = /
velocity.production = false
velocity.plugin = $json
source1 = com.epimorphics.appbase.data.impl.RemoteSparqlSource
#source1.endpoint = http://54.217.84.92/sparql/ds-ro/query
source1.endpoint = http://ec2-54-220-125-236.eu-west-1.compute.amazonaws.com/landregistry/query
source2 = com.epimorphics.appbase.data.impl.RemoteSparqlSource
source2.endpoint = http://localhost:3030/ds/sparql
# The dataset configurations
monitor = com.epimorphics.data_api.config.DatasetMonitor
#monitor.directory = {webapp}/WEB-INF/conf
monitor.directory = /home/chris/dsapi
monitor.fileSampleLength = 500
# The API service
dsapi = com.epimorphics.data_api.config.DSAPIManager
dsapi.sources = $source2, $source1
dsapi.apiBase = /dsapi
dsapi.monitoredDatasets = $monitor
***
data-api-app/src/main/webapp/WEB-INF/app.conf
***
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix wfd: <http://location.data.gov.uk/def/am/wfd/> .
@prefix ppd: <http://landregistry.data.gov.uk/def/ppi/> .
@prefix lrcommon: <http://landregistry.data.gov.uk/def/common/>.
@prefix dsapi: <http://www.epimorphics.com/public/vocabulary/dsapi#> .
@prefix admingeo: <http://data.ordnancesurvey.co.uk/ontology/admingeo/> .
@prefix sr: <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/> .
@prefix : <http://landregistry.data.gov.uk/dsapi/ppd#> .
:ppd a dsapi:Dataset;
rdfs:label "Property price data";
dct:description "A dataset of property transactions";
# dsapi:baseQuery "?item rdf:type ppd:TransactionRecord";
dsapi:source "source1";
dsapi:aspect
[rdfs:label "transaction" ; dsapi:property ppd:hasTransaction],
[rdfs:label "publish date" ; dsapi:property ppd:publishDate],
[rdfs:label "transaction date" ; dsapi:property ppd:transactionDate],
[rdfs:label "transaction ID" ; dsapi:property ppd:transactionId],
[rdfs:label "price paid" ; dsapi:property ppd:pricePaid],
[rdfs:label "property address" ; dsapi:property ppd:propertyAddress],
[rdfs:label "estate type" ; dsapi:property ppd:estateType; dsapi:optional true],
[rdfs:label "new build" ; dsapi:property ppd:newBuild; dsapi:optional true],
[rdfs:label "property type" ; dsapi:property ppd:propertyType; dsapi:optional true],
[rdfs:label "property-paon" ; dsapi:property ppd:propertyAddressPaon ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:paon"; dsapi:optional true],
[rdfs:label "property-postcode" ; dsapi:property ppd:propertyAddressPostcode ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:postcode"; dsapi:optional true],
[rdfs:label "property-saon" ; dsapi:property ppd:propertyAddressSaon ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:saon"; dsapi:optional true],
[rdfs:label "property-town" ; dsapi:property ppd:propertyAddressTown ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:town"; dsapi:optional true],
[rdfs:label "property-locality" ; dsapi:property ppd:propertyAddressLocality ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:locality"; dsapi:optional true],
[rdfs:label "property-district" ; dsapi:property ppd:propertyAddressDistrict ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:district"; dsapi:optional true],
[rdfs:label "property-county" ; dsapi:property ppd:propertyAddressCounty ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:county"; dsapi:optional true],
[rdfs:label "property-street" ; dsapi:property ppd:propertyAddressStreet ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:street"; dsapi:optional true]
.
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix wfd: <http://location.data.gov.uk/def/am/wfd/> .
@prefix ppd: <http://landregistry.data.gov.uk/def/ppi/> .
@prefix lrcommon: <http://landregistry.data.gov.uk/def/common/>.
@prefix dsapi: <http://www.epimorphics.com/public/vocabulary/dsapi#> .
@prefix admingeo: <http://data.ordnancesurvey.co.uk/ontology/admingeo/> .
@prefix sr: <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/> .
@prefix : <http://landregistry.data.gov.uk/dsapi/ppd#> .
:ppd a dsapi:Dataset;
rdfs:label "Property price data";
dct:description "A dataset of property transactions";
# dsapi:baseQuery "?item rdf:type ppd:TransactionRecord";
dsapi:source "source1";
dsapi:aspect
[rdfs:label "transaction" ; dsapi:property ppd:hasTransaction],
[rdfs:label "publish date" ; dsapi:property ppd:publishDate],
[rdfs:label "transaction date" ; dsapi:property ppd:transactionDate],
[rdfs:label "transaction ID" ; dsapi:property ppd:transactionId],
[rdfs:label "price paid" ; dsapi:property ppd:pricePaid],
[rdfs:label "property address" ; dsapi:property ppd:propertyAddress],
[rdfs:label "estate type" ; dsapi:property ppd:estateType; dsapi:optional true],
[rdfs:label "new build" ; dsapi:property ppd:newBuild; dsapi:optional true],
[rdfs:label "property type" ; dsapi:property ppd:propertyType; dsapi:optional true],
[rdfs:label "property-paon" ; dsapi:property ppd:propertyAddressPaon ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:paon"; dsapi:optional true],
[rdfs:label "property-postcode" ; dsapi:property ppd:propertyAddressPostcode ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:postcode"; dsapi:optional true],
[rdfs:label "property-saon" ; dsapi:property ppd:propertyAddressSaon ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:saon"; dsapi:optional true],
[rdfs:label "property-town" ; dsapi:property ppd:propertyAddressTown ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:town"; dsapi:optional true],
[rdfs:label "property-locality" ; dsapi:property ppd:propertyAddressLocality ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:locality"; dsapi:optional true],
[rdfs:label "property-district" ; dsapi:property ppd:propertyAddressDistrict ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:district"; dsapi:optional true],
[rdfs:label "property-county" ; dsapi:property ppd:propertyAddressCounty ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:county"; dsapi:optional true],
[rdfs:label "property-street" ; dsapi:property ppd:propertyAddressStreet ; dsapi:propertyPath "ppd:propertyAddress/lrcommon:street"; dsapi:optional true]
.