Fix ordering of checks (narrower to broader) for genid types.
@@ -1510,15 +1510,17 @@ class Graph(Node):
def do_de_skolemize2(t):
(s, p, o) = t
- if Genid._is_external_skolem(s):
- s = Genid(s).de_skolemize()
- elif RDFLibGenid._is_rdflib_skolem(s):
+ if RDFLibGenid._is_rdflib_skolem(s):
+ print('rdflibgen')
s = RDFLibGenid(s).de_skolemize()
+ elif Genid._is_external_skolem(s):
+ print('genid')
+ s = Genid(s).de_skolemize()
- if Genid._is_external_skolem(o):
- o = Genid(o).de_skolemize()
- elif RDFLibGenid._is_rdflib_skolem(o):
+ if RDFLibGenid._is_rdflib_skolem(o):
o = RDFLibGenid(o).de_skolemize()
+ elif Genid._is_external_skolem(o):
+ o = Genid(o).de_skolemize()
return s, p, o
