Skip to content

Commit

Permalink
renaming package to kgcl-rdflib
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Jul 6, 2022
1 parent f99992f commit d5da9cd
Show file tree
Hide file tree
Showing 27 changed files with 34 additions and 34 deletions.
12 changes: 6 additions & 6 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
request,
)

from kgcl.apply.graph_transformer import apply_patch
from kgcl_rdflib.apply.graph_transformer import apply_patch

# from kgcl.diff.example_kgcl_operations import generate_diff
import rdflib
from kgcl_schema.grammar import parse

import kgcl.diff.diff_2_kgcl_single as single
import kgcl.diff.diff_2_kgcl_existential as existential
import kgcl.diff.diff_2_kgcl_triple_annotation as annotation
import kgcl_rdflib.diff.diff_2_kgcl_single as single
import kgcl_rdflib.diff.diff_2_kgcl_existential as existential
import kgcl_rdflib.diff.diff_2_kgcl_triple_annotation as annotation

from kgcl.diff.pretty_print_kgcl import render_instances
from kgcl_rdflib.diff.pretty_print_kgcl import render_instances

# from diff.example_kgcl_operations import generate_diff
from kgcl.render_kgcl import render
from kgcl_rdflib.render_kgcl import render


def generate_diff():
Expand Down
Binary file removed kgcl/apply/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed kgcl/apply/__pycache__/graph_transformer.cpython-38.pyc
Binary file not shown.
Binary file removed kgcl/apply/__pycache__/kgcl_2_sparql.cpython-38.pyc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import rdflib

from kgcl.diff.graph_diff import (get_added_existentials,
get_deleted_existentials)
from kgcl.diff.render_operations import render
from kgcl_rdflib.diff.graph_diff import (get_added_existentials,
get_deleted_existentials)
from kgcl_rdflib.diff.render_operations import render
from kgcl_schema.datamodel.kgcl import EdgeCreation, EdgeDeletion


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from rdflib import Graph, Literal, URIRef
from rdflib.namespace import OWL, RDF, RDFS

from kgcl.diff.change_detection import (detect_annotation_changes,
detect_node_moves,
detect_predicate_changes,
detect_renamings)
from kgcl.diff.graph_diff import (get_added_thin_triples,
get_deleted_thin_triples)
from kgcl.diff.render_operations import render
from kgcl_rdflib.diff.change_detection import (detect_annotation_changes,
detect_node_moves,
detect_predicate_changes,
detect_renamings)
from kgcl_rdflib.diff.graph_diff import (get_added_thin_triples,
get_deleted_thin_triples)
from kgcl_rdflib.diff.render_operations import render
from kgcl_schema.datamodel.kgcl import ClassCreation, NewSynonym, PlaceUnder, RemoveUnder


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import rdflib
from rdflib import Graph, Literal, URIRef

from kgcl.diff.graph_diff import (get_added_triple_annotations,
get_deleted_triple_annotations)
from kgcl.diff.render_operations import render
from kgcl_rdflib.diff.graph_diff import (get_added_triple_annotations,
get_deleted_triple_annotations)
from kgcl_rdflib.diff.render_operations import render
from kgcl_schema.datamodel.kgcl import EdgeCreation, EdgeDeletion
from kgcl_schema.datamodel.ontology_model import Annotation

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import rdflib
from rdflib.util import guess_format

import kgcl.diff.diff_2_kgcl_existential as existential
import kgcl.diff.diff_2_kgcl_single as single
from kgcl.diff.pretty_print_kgcl import render_instances
import kgcl_rdflib.diff.diff_2_kgcl_existential as existential
import kgcl_rdflib.diff.diff_2_kgcl_single as single
from kgcl_rdflib.diff.pretty_print_kgcl import render_instances


def ts():
Expand Down
2 changes: 1 addition & 1 deletion kgcl/kgcl.py → kgcl_rdflib/kgcl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import rdflib
from rdflib.util import guess_format

from kgcl.apply import graph_transformer
from kgcl_rdflib.apply import graph_transformer
from kgcl_schema.grammar import parser

# TODO: remove this
Expand Down
8 changes: 4 additions & 4 deletions kgcl/kgcl_diff.py → kgcl_rdflib/kgcl_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from typing import List

import click
import kgcl.diff.diff_2_kgcl_existential as existential
import kgcl.diff.diff_2_kgcl_single as single
import kgcl.diff.diff_2_kgcl_triple_annotation as annotation
import kgcl_rdflib.diff.diff_2_kgcl_existential as existential
import kgcl_rdflib.diff.diff_2_kgcl_single as single
import kgcl_rdflib.diff.diff_2_kgcl_triple_annotation as annotation
import rdflib
from kgcl_schema.datamodel.kgcl import Change

from kgcl.diff.pretty_print_kgcl import render_instances
from kgcl_rdflib.diff.pretty_print_kgcl import render_instances


def ts():
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "kgcl"
name = "kgcl-rdflib"
version = "0.1.0"
description = "Schema fro the KGCL project."
authors = [
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import rdflib
from click.testing import CliRunner

import kgcl.kgcl as kgcl_apply
import kgcl.kgcl_diff as kgcl_diff
import kgcl_rdflib.kgcl as kgcl_apply
import kgcl_rdflib.kgcl_diff as kgcl_diff
import kgcl_schema.grammar.parser as kgcl_parser
from kgcl_schema.datamodel.kgcl import Session
from kgcl_schema.utils import from_yaml
Expand Down
4 changes: 2 additions & 2 deletions tests/test_diff/test_diff.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import unittest

import rdflib
from kgcl.apply import graph_transformer
from kgcl_rdflib.apply import graph_transformer
import kgcl_schema.grammar.parser as parser
from kgcl.kgcl_diff import diff
from kgcl_rdflib.kgcl_diff import diff
from rdflib.util import guess_format

from tests import INPUT
Expand Down
2 changes: 1 addition & 1 deletion tests/test_grammar/test_render.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from kgcl.diff.render_operations import render
from kgcl_rdflib.diff.render_operations import render
from kgcl_schema.grammar.parser import parse_statement

from tests.cases import CASES
Expand Down
2 changes: 1 addition & 1 deletion tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from rdflib import Graph
from rdflib.compare import graph_diff, to_isomorphic

from kgcl.apply.graph_transformer import apply_patch
from kgcl_rdflib.apply.graph_transformer import apply_patch
from kgcl_schema.grammar.parser import parse


Expand Down

0 comments on commit d5da9cd

Please sign in to comment.