INCATools / kgcl

Datamodel for KGCL (Knowledge Graph Change Language)
https://w3id.org/kgcl/
MIT License
11 stars 4 forks source link

Added `obsolete` command examples. #35

Closed hrshdhgd closed 1 year ago

hrshdhgd commented 1 year ago

Added the following to cases.py

    (
        f"obsolete {NUCLEUS}",
        f"obsolete {NUCLEUS_URI}",
        NodeObsoletion(
            id=UID,
            about_node=NUCLEUS,
            about_node_representation="curie",
        ),
        None,
    ),
    (
        f"obsolete {NUCLEUS} with replacement {NEW_TERM}",
        f"obsolete {NUCLEUS_URI} with replacement {NEW_TERM_URI}",
        NodeObsoletionWithDirectReplacement(
            id=UID,
            about_node=NUCLEUS,
            about_node_representation="curie",
            has_direct_replacement=NEW_TERM
        ),
        None,
    ),