BrickSchema / py-brickschema

Python package for working with Brick (brickschema.org/)
Other
55 stars 15 forks source link

Add ontology versioning support #86

Open gtfierro opened 2 years ago

gtfierro commented 2 years ago
    g = Graph(graph_name=URIRef("urn:example"), load_brick=True)
    graph_name = g.value(predicate=A, object=OWL.Ontology)
    assert graph_name == URIRef("urn:example")
    imports = list(g.objects(subject=graph_name, predicate=OWL.imports))
    assert len(imports) == 1