Skip to content

Release 0.11.0 #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion case_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
#
# We would appreciate acknowledgement if the software is used.

__version__ = "0.10.0"
__version__ = "0.11.0"

from . import local_uuid # noqa: F401
2 changes: 1 addition & 1 deletion case_utils/case_file/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
This module creates a graph object that provides a basic UCO characterization of a single file. The gathered metadata is among the more "durable" file characteristics, i.e. characteristics that would remain consistent when transferring a file between locations.
"""

__version__ = "0.4.0"
__version__ = "0.5.0"

import argparse
import datetime
Expand Down
12 changes: 6 additions & 6 deletions case_utils/inherent_uuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
>>> assert str(n_file_facet)[-36:] == str(n_file_facet_2)[-36:]
"""

__version__ = "0.0.3"
__version__ = "0.1.0"

import binascii
import re
Expand Down Expand Up @@ -93,11 +93,11 @@
)


def inherence_uuid(n_uco_thing: URIRef, *args: Any, **kwargs: Any) -> uuid.UUID:
def inherence_uuid(n_thing: URIRef, *args: Any, **kwargs: Any) -> uuid.UUID:
"""
This function returns a UUIDv5 for any UcoThing, that can be used as a UUID Namespace in further `uuid.uuidv5` calls.
This function returns a UUIDv5 for any OWL Thing, that can be used as a UUID Namespace in further `uuid.uuidv5` calls.

In the case that the UcoThing ends with a UUID, that UUID string will be returned wrapped in a UUID object. In all other cases, a UUID version 5 object will be returned for the node as a name under the URL namespace [#rfc4122ac]_.
In the case that the Thing is a UcoThing that ends with a UUID, that UUID string will be returned wrapped in a UUID object. In all other cases, a UUID version 5 object will be returned for the Thing as a name under the URL namespace [#rfc4122ac]_.

References
==========
Expand All @@ -123,7 +123,7 @@ def inherence_uuid(n_uco_thing: URIRef, *args: Any, **kwargs: Any) -> uuid.UUID:
>>> case_homepage_uuid_namespace
UUID('2c6406b7-3396-5fdd-b9bf-c6e21273e40a')
"""
node_iri = str(n_uco_thing)
node_iri = str(n_thing)
if len(node_iri) < 40 or RX_UUID.search(node_iri) is None:
# <40 -> Too short to have a UUID and scheme.
return uuid.uuid5(uuid.NAMESPACE_URL, node_iri)
Expand All @@ -138,7 +138,7 @@ def facet_inherence_uuid(
**kwargs: Any
) -> uuid.UUID:
"""
:param n_facet_class: This node is expected to be the `rdflib.term.URIRef` for an OWL Class that is either in UCO or extends a class in UCO, such as `case_utils.namespace.NS_UCO_OBSERVABLE.FileFacet`. The Facet class SHOULD be a 'leaf' class - that is, it should have no OWL subclasses. (This 'SHOULD' might become a more stringent requirement in the future. uco-core:Facet must not be used. There is some question on how this rule should apply for uco-observable:WifiAddressFacet and its parent class uco-observable:MACAddressFacet.)
:param n_facet_class: This node is expected to be the `rdflib.term.URIRef` for an OWL Class that is either in UCO or extends a class in UCO, such as `case_utils.namespace.NS_UCO_OBSERVABLE.FileFacet`. The Facet class SHOULD be a 'leaf' class - that is, it should have no OWL subclasses. (This 'SHOULD' might become a more stringent requirement in the future. uco-core:Facet MUST not be used. There is some question on how this rule should apply for uco-observable:WifiAddressFacet and its parent class uco-observable:MACAddressFacet.)
:type n_facet_class: rdflib.term.URIRef
"""

Expand Down
2 changes: 1 addition & 1 deletion case_utils/ontology/src/ontology_and_version_iris.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
This script creates a list of all ontology and version IRIs that have ever existed in a CDO ontology to describe a CDO ontology. I.e. the subject of triples with owl:Ontology as predicate are included, as are the objects of version-referencing triples (owl:versionIRI, owl:incompatibleWith, etc.).
"""

__version__ = "0.1.0"
__version__ = "0.1.1"

import argparse
import typing
Expand Down