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 docker_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0
1.2.0
10 changes: 5 additions & 5 deletions ldd.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
import shutil
import re
import urllib
import urllib.parse
from rdflib import RDFS

class LinkedDataDirector(object):
Expand Down Expand Up @@ -145,7 +145,7 @@ def get_representation(self, url):
# (comment the above one if needed)
external_graph = self.load_graph(
self.basepath + os.sep +
urllib.unquote_plus(
urllib.parse.unquote_plus(
str_o.replace(self.baseurl, "")) +
# The following line is for internal testing
# (comment the above one if needed)
Expand Down Expand Up @@ -201,8 +201,8 @@ def __load_graph(file_path):
current_graph = rdflib.Graph()

try:
current_graph.load(file_path)
current_graph.parse(file_path)
except SAXParseException:
current_graph.load(file_path, format="turtle")
current_graph.parse(file_path, format="turtle")

return current_graph
return current_graph
4 changes: 2 additions & 2 deletions oh.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ def load_graph(ontology_url):
current_graph = rdflib.Graph()

try:
current_graph.load(ontology_url)
current_graph.parse(ontology_url)
except SAXParseException:
try:
current_graph.load(ontology_url, format="turtle")
current_graph.parse(ontology_url, format="turtle")
except Exception as e:
raise e
except Exception as e:
Expand Down
Loading