Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdamusic committed Nov 14, 2021
1 parent ed50da8 commit d82d621
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ontospy/core/rdf_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ def load_data(self, data):
if self.verbose:
printDebug(".. trying rdf serialization: <%s>" % f)
try:
if f == 'json-ld':
self._fix_default_graph_for_jsonld()
# TODO ??
# if f == 'json-ld':
# self._fix_default_graph_for_jsonld()
self.rdflib_graph.parse(data=data, format=f)
if self.verbose: printDebug("..... success!")
success = True
Expand Down Expand Up @@ -253,7 +254,7 @@ def loading_failed(self, rdf_format_opts, uri=""):
if uri:
uri = " <%s>" % str(uri)
printDebug(
"----------\nFatal error parsing graph%s\n(using RDF serializations: %s)"
"----------\nFatal error parsing graph%s\n(tried RDF serializations: %s)"
% (uri, str(rdf_format_opts)), "red")
printDebug(
"----------\nTIP: You can try one of the following RDF validation services\n<http://mowl-power.cs.man.ac.uk:8080/validator/validate>\n<http://rdfvalidator.mybluemix.net/>\n<https://json-ld.org/playground/>"
Expand Down

0 comments on commit d82d621

Please sign in to comment.