Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Nov 7, 2023
1 parent 006d69b commit 89dec0b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions trove/derive/_base.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import abc

from gather import primitive_rdf
from primitive_metadata import primitive_rdf

from trove.models import IndexcardRdf


class IndexcardDeriver(abc.ABC):
upriver_rdf: IndexcardRdf
focus_iri: str
data: primitive_rdf.TripledictWrapper
data: primitive_rdf.RdfGraph

def __init__(self, upriver_rdf: IndexcardRdf):
self.upriver_rdf = upriver_rdf
self.focus_iri = upriver_rdf.focus_iri
self.data = primitive_rdf.TripledictWrapper(upriver_rdf.as_rdf_tripledict())
self.data = primitive_rdf.RdfGraph(upriver_rdf.as_rdf_tripledict())

###
# for subclasses to implement:
Expand Down
2 changes: 1 addition & 1 deletion trove/extract/_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import abc

from gather import primitive_rdf
from primitive_metadata import primitive_rdf


class BaseRdfExtractor(abc.ABC):
Expand Down
2 changes: 1 addition & 1 deletion trove/render/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django import http
from gather import primitive_rdf
from primitive_metadata import primitive_rdf

from trove.vocab.trove import TROVE_API_VOCAB, trove_indexcard_namespace
from .jsonapi import RdfJsonapiRenderer
Expand Down
2 changes: 1 addition & 1 deletion trove/vocab/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import dataclasses
import pathlib

from gather import primitive_rdf
from primitive_metadata import primitive_rdf

from . import namespaces

Expand Down

0 comments on commit 89dec0b

Please sign in to comment.