Skip to content

Commit

Permalink
fix: give indexcards types
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Dec 20, 2024
1 parent 1038780 commit fb70351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trove/trovesearch/trovesearch_gathering.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def _describe_indexcard_nonderived(
) -> rdf.RdfGraph:
_card_description = rdf.RdfGraph({
indexcard_iri: {
RDF.type: {TROVE.Indexcard, DCAT.CatalogRecord},
TROVE.resourceMetadata: {indexcard_rdf.as_quoted_graph()},
DCTERMS.issued: {indexcard_rdf.indexcard.created.date()},
DCTERMS.modified: {indexcard_rdf.modified.date()},
Expand All @@ -366,6 +367,7 @@ def _describe_indexcard_derived(
) -> rdf.RdfGraph:
_card_description = rdf.RdfGraph({
indexcard_iri: {
RDF.type: {TROVE.Indexcard, DCAT.CatalogRecord},
TROVE.resourceMetadata: {derived_indexcard.as_rdf_literal()},
DCTERMS.issued: {derived_indexcard.upriver_indexcard.created.date()},
DCTERMS.modified: {derived_indexcard.modified.date()},
Expand Down

0 comments on commit fb70351

Please sign in to comment.