Skip to content

Commit c03c190

Browse files
committed
solving security issues with ips
1 parent c3430cc commit c03c190

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# QA4LOV
22
QA over Linked Open Vocabularies
33

4-
Demo at http://212.101.173.21:3333/dataset/bdo/qa
4+
Demo at http://localhost:3333/dataset/bdo/qa
55

66
## List of dependencies
77

@@ -12,7 +12,7 @@ Demo at http://212.101.173.21:3333/dataset/bdo/qa
1212

1313
## How to launch the src/webapp
1414
- Download the repository `src/webapp`
15-
- Launch Datalift containing an instance of [BDO dataset](http://212.101.173.21:3333/dataset/bdo/) published at `http://localhost:9091/sparql/data`.
15+
- Launch Datalift containing an instance of [BDO dataset](http://localhost:3333/dataset/bdo/) published at `http://localhost:9091/sparql/data`.
1616
- If different endpoint, change the value in the file `main.py` in Line 15: `sparql = SPARQLWrapper("http://fuseki:3030/sparql/data")` to the corresponding endpoint
1717
- `$ ./app.py`
1818
- The server starts at http://127.0.0.1:5000/

src/webapp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## How to launch the src/webapp
99
- Download the repository `src/webapp`
10-
- Launch Datalift containing an instance of [BDO dataset](http://212.101.173.21:3333/dataset/bdo/) published at `http://localhost:9091/sparql/data`.
10+
- Launch Datalift containing an instance of [BDO dataset](http://localhost:3333/dataset/bdo/) published at `http://localhost:9091/sparql/data`.
1111
- If different endpoint, change the value in the file `main.py` in Line 15: `sparql = SPARQLWrapper("http://fuseki:3030/sparql/data")` to the corresponding endpoint
1212
- `$ ./app.py`
1313
- The server starts at http://127.0.0.1:5000/

src/webapp/lov/printHandlers.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def print_agent(results, target, isHtml, metadata=None):
2828
if metadata:
2929
literal = metadata.format(literal)
3030
if isHtml:
31-
print "<p><a href='http://212.101.173.21:3333/dataset/bdo/agents/"\
31+
print "<p><a href='http://localhost:3333/dataset/bdo/agents/"\
3232
+ urllib.quote(literal, safe='')+"'>"+literal+"</a></p>"
3333
else:
3434
print literal
@@ -39,7 +39,7 @@ def print_pilot(results, target, isHtml, metadata=None):
3939
if metadata:
4040
literal = metadata.format(literal)
4141
if isHtml:
42-
print "<p><a href='http://212.101.173.21:3333/dataset/bdo/pilots/"\
42+
print "<p><a href='http://localhost:3333/dataset/bdo/pilots/"\
4343
+ urllib.quote(literal, safe='')+"'>"+literal+"</a></p>"
4444
else:
4545
print literal
@@ -51,7 +51,7 @@ def print_category(results, target, isHtml, metadata=None):
5151
if metadata:
5252
literal = metadata.format(literal)
5353
if isHtml:
54-
print "<p><a href='http://212.101.173.21:3333/dataset/bdo/vocabs?tag=" \
54+
print "<p><a href='http://localhost:3333/dataset/bdo/vocabs?tag=" \
5555
+ urllib.quote(literal, safe='') + "'>" + literal + "</a></p>"
5656
else:
5757
print literal
@@ -63,7 +63,7 @@ def print_lang(results, target, isHtml, metadata=None):
6363
if metadata:
6464
literal = metadata.format(literal)
6565
if isHtml:
66-
print "<p><a href='http://212.101.173.21:3333/dataset/bdo/vocabs?lang=" \
66+
print "<p><a href='http://localhost:3333/dataset/bdo/vocabs?lang=" \
6767
+ urllib.quote(literal, safe='') + "'>" + literal + "</a></p>"
6868
else:
6969
print literal

src/webapp/lov/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
PREFIX voaf: <http://purl.org/vocommons/voaf#>
3333
PREFIX dcterms: <http://purl.org/dc/terms/>
3434
PREFIX dcat: <http://www.w3.org/ns/dcat#>
35-
PREFIX lov: <http://212.101.173.21:3333/dataset/bdo/>
35+
PREFIX lov: <http://localhost:3333/dataset/bdo/>
3636
3737
"""

0 commit comments

Comments
 (0)