Skip to content

Commit b7aacec

Browse files
authored
Merge pull request #111 from AKSW/feature/fixVocabURI
Change vocab uri to http://quit.aksw.org/vocab/
2 parents 6c550bb + 6a95742 commit b7aacec

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

config.example.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@prefix conf: <http://my.quit.conf/> .
2-
@prefix quit: <http://quit.aksw.org/> .
2+
@prefix quit: <http://quit.aksw.org/vocab/> .
33
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
44
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
55

@@ -32,4 +32,4 @@ conf:default1 a <Graph> ;
3232
conf:aksw a <Binding> ;
3333
quit:prefix "aksw" ;
3434
quit:namespace <http://aksw.org/> .
35-
quit:graphFile "default.nq" .
35+
quit:graphFile "default.nq" .

docker/config.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@base <http://my.quit.conf/> .
2-
@prefix quit: <http://quit.aksw.org/> .
2+
@prefix quit: <http://quit.aksw.org/vocab/> .
33
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
44
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
55

quit/conf.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ def __init__(
5050
self.graphs = {}
5151
self.files = {}
5252

53-
self.quit = Namespace('http://quit.aksw.org/')
53+
self.quit = Namespace('http://quit.aksw.org/vocab/')
5454
self.nsMngrSysconf = NamespaceManager(self.sysconf)
55-
self.nsMngrSysconf.bind('', 'http://quit.aksw.org/', override=False)
55+
self.nsMngrSysconf.bind('', 'http://quit.aksw.org/vocab/', override=False)
5656
self.nsMngrGraphconf = NamespaceManager(self.sysconf)
57-
self.nsMngrGraphconf.bind('', 'http://quit.aksw.org/', override=False)
57+
self.nsMngrGraphconf.bind('', 'http://quit.aksw.org/vocab/', override=False)
5858

5959
try:
6060
self.__initstoreconfig(
@@ -225,7 +225,7 @@ def __readGraphIriFile(self, graphfile):
225225

226226
def __setgraphsfromconf(self):
227227
"""Set all URIs and file paths of graphs that are configured in config.ttl."""
228-
nsQuit = 'http://quit.aksw.org/'
228+
nsQuit = 'http://quit.aksw.org/vocab/'
229229
query = 'SELECT DISTINCT ?graphuri ?filename WHERE { '
230230
query += ' ?graph a <' + nsQuit + 'Graph> . '
231231
query += ' ?graph <' + nsQuit + 'graphUri> ?graphuri . '
@@ -310,7 +310,7 @@ def getConfigMode(self):
310310
Returns:
311311
A string containig the mode.
312312
"""
313-
nsQuit = 'http://quit.aksw.org/'
313+
nsQuit = 'http://quit.aksw.org/vocab/'
314314
property = URIRef(nsQuit + 'configMode')
315315

316316
for s, p, o in self.sysconf.triples((None, property, None)):
@@ -324,7 +324,7 @@ def getRepoPath(self):
324324
Returns:
325325
A string containig the path of the git repo.
326326
"""
327-
nsQuit = 'http://quit.aksw.org/'
327+
nsQuit = 'http://quit.aksw.org/vocab/'
328328
storeuri = URIRef('http://my.quit.conf/store')
329329
property = URIRef(nsQuit + 'pathOfGitRepo')
330330

@@ -337,7 +337,7 @@ def getDefaultBranch(self):
337337
Returns:
338338
A string containing the branch name.
339339
"""
340-
nsQuit = 'http://quit.aksw.org/'
340+
nsQuit = 'http://quit.aksw.org/vocab/'
341341
storeuri = URIRef('http://my.quit.conf/store')
342342
property = URIRef(nsQuit + 'defaultBranch')
343343

@@ -352,7 +352,7 @@ def getGlobalFile(self):
352352
Returns:
353353
The filename of the graph file where unassigned graphs should be stored.
354354
"""
355-
nsQuit = 'http://quit.aksw.org/'
355+
nsQuit = 'http://quit.aksw.org/vocab/'
356356
storeuri = URIRef('http://my.quit.conf/store')
357357
property = URIRef(nsQuit + 'globalFile')
358358

@@ -361,7 +361,7 @@ def getGlobalFile(self):
361361

362362
def getOrigin(self):
363363
"""Get the URI of Git remote from configuration."""
364-
nsQuit = 'http://quit.aksw.org/'
364+
nsQuit = 'http://quit.aksw.org/vocab/'
365365
storeuri = URIRef('http://my.quit.conf/store')
366366
property = URIRef(nsQuit + 'origin')
367367

@@ -490,7 +490,7 @@ def setRepoPath(self, path):
490490
return
491491

492492
def getBindings(self):
493-
ns = Namespace('http://quit.aksw.org/')
493+
ns = Namespace('http://quit.aksw.org/vocab/')
494494
q = """SELECT DISTINCT ?prefix ?namespace WHERE {{
495495
{{
496496
?ns a <{binding}> ;

quit/namespace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
# missing namespaces
66
PROV = Namespace('http://www.w3.org/ns/prov#')
7-
QUITD = Namespace('http://quit.aksw.org/')
7+
QUITD = Namespace('http://quit.aksw.org/vocab/')
88

9-
QUIT = Namespace('http://quit.aksw.org/')
9+
QUIT = Namespace('http://quit.aksw.org/vocab/')
1010

1111
# simplified properties
1212
is_a = RDF.type

quit/provenance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def run(self, quads=None, branch_or_ref='master'):
5858
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
5959
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
6060
PREFIX aksw: <http://aksw.org/>
61-
PREFIX quit: <http://quit.aksw.org/>
61+
PREFIX quit: <http://quit.aksw.org/vocab/>
6262
PREFIX prov: <http://www.w3.org/ns/prov#>
6363
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
6464
SELECT ?s ?p ?o ?context ?hex ?name ?email ?date WHERE {

tests/samples/applicationTests/config.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@base <http://quit.aksw.org/> .
1+
@base <http://quit.aksw.org/vocab/> .
22
@prefix conf: <http://my.quit.conf/> .
33

44
conf:store a <QuitStore> ;

tests/samples/configuration_test/config.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@base <http://quit.aksw.org/> .
1+
@base <http://quit.aksw.org/vocab/> .
22
@prefix conf: <http://my.quit.conf/> .
33

44
conf:store a <QuitStore> ;

vocab/config-shapes.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@prefix quit: <http://quit.aksw.org/> .
1+
@prefix quit: <http://quit.aksw.org/vocab/> .
22
@prefix qshapes: <http://quit.aksw.org/shapes/> .
33
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
44
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

vocab/provenance-shapes.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@prefix quit: <http://quit.aksw.org/> .
1+
@prefix quit: <http://quit.aksw.org/vocab/> .
22
@prefix qshapes: <http://quit.aksw.org/shapes/> .
33
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
44
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

vocab/vocab.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@prefix quit: <http://quit.aksw.org/> .
1+
@prefix quit: <http://quit.aksw.org/vocab/> .
22
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
33
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
44

0 commit comments

Comments
 (0)