Skip to content

isomorphic graph with literal testing #656

Closed
@satra

Description

@satra
if not g_rdf.isomorphic(g0_rdf):
    in_both, in_first, in_second = graph_diff(g_rdf, g0_rdf)
    print("FIRST")
    dump_nt_sorted(in_first) 
    print("SECOND")
    dump_nt_sorted(in_second) 

returns

FIRST
<http://example.org/a2> <http://www.w3.org/2000/01/rdf-schema#label> "activity2" .
<http://example.org/a2> <http://www.w3.org/2000/01/rdf-schema#label> "hello" .
SECOND
<http://example.org/a2> <http://www.w3.org/2000/01/rdf-schema#label> 
            "activity2"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://example.org/a2> <http://www.w3.org/2000/01/rdf-schema#label> 
            "hello"^^<http://www.w3.org/2001/XMLSchema#string> .

would there be a way to say that the string "activity2" is equivalent to "activity2"^^<http://www.w3.org/2001/XMLSchema#string>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions