Skip to content

Commit

Permalink
Merge pull request #80 from NatLibFi/fix-last-character-split
Browse files Browse the repository at this point in the history
fix regression introduced by #79
  • Loading branch information
osma committed Nov 16, 2020
2 parents bf098c9 + afb7e38 commit 6dca4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skosify/skosify.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def create_concept_scheme(rdf, ns, lname=''):
"No skos:ConceptScheme or owl:Ontology found. "
"Using namespace auto-detection for creating concept scheme.")
ns = detect_namespace(rdf)
elif ont[:-1] in ['/', '#', ':']:
elif ont[-1:] in ['/', '#', ':']:
ns = ont
else:
ns = ont + '/'
Expand Down

0 comments on commit 6dca4ae

Please sign in to comment.