aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/schema/serialize.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-01-12 08:44:25 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-01-12 08:44:25 +0100
commit6fd984e694b0a7b749ab947211d792f5b011ee6f (patch)
tree1c64cb2f9070d40e54b8108ac68f6eec07afb2fc /bsfs/schema/serialize.py
parent1ffb815f25b9f7db7b946f9db436974a687cf818 (diff)
downloadbsfs-6fd984e694b0a7b749ab947211d792f5b011ee6f.tar.gz
bsfs-6fd984e694b0a7b749ab947211d792f5b011ee6f.tar.bz2
bsfs-6fd984e694b0a7b749ab947211d792f5b011ee6f.zip
renamed get_child to child in schema.types._Type and _Vertex to Vertex in schema.types
Diffstat (limited to 'bsfs/schema/serialize.py')
-rw-r--r--bsfs/schema/serialize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsfs/schema/serialize.py b/bsfs/schema/serialize.py
index 1222aa6..c1ac9a9 100644
--- a/bsfs/schema/serialize.py
+++ b/bsfs/schema/serialize.py
@@ -125,10 +125,10 @@ def from_string(schema_str: str) -> schema.Schema:
# get distance
distance = _fetch_value(uri, rdflib.URIRef(ns.bsfs.distance), URI)
# return feature
- return parent.get_child(URI(uri), domain=dom, range=rng, unique=unique,
+ return parent.child(URI(uri), domain=dom, range=rng, unique=unique,
dtype=dtype, dimension=dimension, distance=distance, **annotations)
# handle non-feature predicate
- return parent.get_child(URI(uri), domain=dom, range=rng, unique=unique, **annotations)
+ return parent.child(URI(uri), domain=dom, range=rng, unique=unique, **annotations)
predicates = _fetch_hierarchically(_build_predicate, types.ROOT_PREDICATE)
return schema.Schema(predicates, nodes, literals)