Skip to content

Commit

Permalink
if self.modified_entities is not None and URIRef(entity.res.split('/p…
Browse files Browse the repository at this point in the history
…rov/se/')[0]) not in self.modified_entities:
  • Loading branch information
arcangelo7 committed Jun 5, 2024
1 parent 7019069 commit 763c9e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions oc_ocdm/storer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from typing import TYPE_CHECKING
from zipfile import ZIP_DEFLATED, ZipFile

from rdflib import ConjunctiveGraph
from rdflib import ConjunctiveGraph, URIRef
from SPARQLWrapper import SPARQLWrapper

from oc_ocdm.graph.graph_entity import GraphEntity
Expand All @@ -37,8 +37,6 @@
if TYPE_CHECKING:
from typing import Any, Dict, List, Optional, Set, Tuple

from rdflib import URIRef

from oc_ocdm.abstract_entity import AbstractEntity
from oc_ocdm.abstract_set import AbstractSet

Expand Down Expand Up @@ -158,7 +156,7 @@ def store_all(self, base_dir: str, base_iri: str, context_path: str = None, proc
relevant_paths: Dict[str, list] = dict()
for entity in self.a_set.res_to_entity.values():
is_relevant = True
if self.modified_entities is not None and entity.res not in self.modified_entities:
if self.modified_entities is not None and URIRef(entity.res.split('/prov/se/')[0]) not in self.modified_entities:
is_relevant = False
if is_relevant:
cur_dir_path, cur_file_path = self._dir_and_file_paths(entity.res, base_dir, base_iri, process_id)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "oc_ocdm"
version = "8.1.1"
version = "8.1.2"
description = "Object mapping library for manipulating RDF graphs that are compliant with the OpenCitations datamodel."
authors = [
"Silvio Peroni <essepuntato@gmail.com>",
Expand Down

0 comments on commit 763c9e1

Please sign in to comment.