def extract_catchments_as_hyfeatures(tree, model=None): g = rdflib.Graph() triples, features = wfs_extract_features_as_profile( tree, ns['x'], "AHGFCatchment", catchment_hyfeatures_converter, model) for (s, p, o) in iter(triples): g.add((s, p, o)) return g
def extract_contracted_catchments_as_hyfeatures(tree, model=None): g = rdflib.Graph() g.bind('geo', GEO) g.bind('geox', GEOX) g.bind('hyf', HYF) g.bind('qudt', QUDTS) g.bind('unit', UNIT) triples, features = wfs_extract_features_as_profile( tree, ns['x'], "AHGFContractedCatchment", contracted_catchment_hyfeatures_converter, model=model) for (s, p, o) in iter(triples): g.add((s, p, o)) return g
def extract_river_regions_as_hyfeatures(tree, model=None): g = rdflib.Graph() g.bind('geo', GEO) g.bind('geox', GEOX) g.bind('hyf', HYF) g.bind('qudt', QUDTS) g.bind('unit', UNIT) triples, features = wfs_extract_features_as_profile( tree, ns['x'], "RiverRegion", river_region_hyfeatures_converter, model=model) for (s, p, o) in iter(triples): g.add((s, p, o)) return g
def extract_drainage_divisions_as_hyfeatures(tree, model=None): g = rdflib.Graph() g.bind('geo', GEO) g.bind('geox', GEOX) g.bind('hyf', HYF) g.bind('qudt', QUDTS) g.bind('unit', UNIT) triples, features = wfs_extract_features_as_profile( tree, ns['x'], "AWRADrainageDivision", profile_converter=drainage_division_hyfeatures_converter, model=model ) for (s, p, o) in iter(triples): g.add((s, p, o)) return g