Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jun 25, 2024
1 parent 19c5f0f commit 45ea26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/graphutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def addDefaultConfigurationParameters(self,triplestorename,triplestoreurl,creden
self.configuration["resource"]["instance"] = triplestoreurl
self.configuration["geoconceptlimit"] = 500
self.configuration["crs"] = 4326
if credentialUserName!=None and credentialUserName!="" and credentialPassword!=None and credentialPassword!=None:
if credentialUserName is not None and credentialUserName!="" and credentialPassword is not None and credentialPassword is not None:
self.configuration["auth"]={}
self.configuration["auth"]["userCredential"] = credentialUserName
self.configuration["auth"]["userPassword"] = credentialPassword
Expand Down Expand Up @@ -311,7 +311,7 @@ def detectGeometryObjectRelations(self):
self.configuration["geoclasses"] = {}
for result in results["results"]["bindings"]:
if "rel" in result \
and result["rel"]["value"] not in DocConfig.georelationproperties \
and result["rel"]["value"] not in DocConfig.geoproperties \
and SPARQLUtils.namespaces["owl"] not in result["rel"]["value"] \
and SPARQLUtils.namespaces["rdfs"] not in result["rel"]["value"] \
and SPARQLUtils.namespaces["skos"] not in result["rel"]["value"]:
Expand Down

0 comments on commit 45ea26f

Please sign in to comment.