Skip to content

Commit

Permalink
Moved drepr extension under export extension module, renamed drepr sc…
Browse files Browse the repository at this point in the history
…ript as main.py
  • Loading branch information
punith300i committed Jun 1, 2023
1 parent bfb1213 commit 196f634
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 16 deletions.
3 changes: 1 addition & 2 deletions sand/controllers/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
get_dataclass_deserializer,
get_deserializer_from_type,
)
from rsoup.rsoup import ContentHierarchy
from sand.models import SemanticModel, Table, TableRow
from sand.models.ontology import OntClassAR, OntPropertyAR
from sand.models.table import Link
from sand.extensions.drepr.relational2rdf import DreprExport
from sand.extensions.export.drepr.main import DreprExport
from sand.serializer import (
get_label,
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from dataclasses import dataclass
from io import StringIO
import orjson, csv
from typing import Dict, List, Set, Tuple, cast
from typing import List, Set
from sand.config import SETTINGS
from sand.models.entity import NIL_ENTITY, Entity
from sand.models.ontology import OntProperty, OntPropertyAR, OntPropertyDataType
from sand.models.table import Table, TableRow
import sm.outputs.semantic_model as O
Expand All @@ -19,22 +15,17 @@
IndexExpr,
RangeExpr,
RangeAlignment,
ValueAlignment,
AlignmentType,
AlignedStep,
Preprocessing,
PreprocessingType,
PMap,
ResourceDataString,
)
import drepr.models.sm as drepr_sm
from drepr.engine import execute, FileOutput, OutputFormat, MemoryOutput
from uuid import uuid4
from drepr.engine import execute, OutputFormat, MemoryOutput
from slugify import slugify
from sand.extension_interface.export import IExport
from sand.extensions.drepr.resources import get_entity_resource, get_table_resource
from sand.extensions.drepr.semanticmodel import get_drepr_sm, get_entity_data_nodes
from sand.extensions.drepr.transformation import has_transformation, get_transformation
from sand.extensions.export.drepr.resources import get_entity_resource, get_table_resource
from sand.extensions.export.drepr.semanticmodel import get_drepr_sm, get_entity_data_nodes
from sand.extensions.export.drepr.transformation import has_transformation, get_transformation


class DreprExport(IExport):
Expand Down
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 196f634

Please sign in to comment.