Skip to content

Commit 0cfe6d1

Browse files
authored
Merge pull request #114 from casework/release-0.11.0
Release 0.11.0
2 parents ccf32f9 + 6da50db commit 0cfe6d1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

case_utils/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
#
1212
# We would appreciate acknowledgement if the software is used.
1313

14-
__version__ = "0.10.0"
14+
__version__ = "0.11.0"
1515

1616
from . import local_uuid # noqa: F401

case_utils/case_file/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
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.
1616
"""
1717

18-
__version__ = "0.4.0"
18+
__version__ = "0.5.0"
1919

2020
import argparse
2121
import datetime

case_utils/inherent_uuid.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
>>> assert str(n_file_facet)[-36:] == str(n_file_facet_2)[-36:]
5555
"""
5656

57-
__version__ = "0.0.3"
57+
__version__ = "0.1.0"
5858

5959
import binascii
6060
import re
@@ -93,11 +93,11 @@
9393
)
9494

9595

96-
def inherence_uuid(n_uco_thing: URIRef, *args: Any, **kwargs: Any) -> uuid.UUID:
96+
def inherence_uuid(n_thing: URIRef, *args: Any, **kwargs: Any) -> uuid.UUID:
9797
"""
98-
This function returns a UUIDv5 for any UcoThing, that can be used as a UUID Namespace in further `uuid.uuidv5` calls.
98+
This function returns a UUIDv5 for any OWL Thing, that can be used as a UUID Namespace in further `uuid.uuidv5` calls.
9999
100-
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]_.
100+
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]_.
101101
102102
References
103103
==========
@@ -123,7 +123,7 @@ def inherence_uuid(n_uco_thing: URIRef, *args: Any, **kwargs: Any) -> uuid.UUID:
123123
>>> case_homepage_uuid_namespace
124124
UUID('2c6406b7-3396-5fdd-b9bf-c6e21273e40a')
125125
"""
126-
node_iri = str(n_uco_thing)
126+
node_iri = str(n_thing)
127127
if len(node_iri) < 40 or RX_UUID.search(node_iri) is None:
128128
# <40 -> Too short to have a UUID and scheme.
129129
return uuid.uuid5(uuid.NAMESPACE_URL, node_iri)
@@ -138,7 +138,7 @@ def facet_inherence_uuid(
138138
**kwargs: Any
139139
) -> uuid.UUID:
140140
"""
141-
: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.)
141+
: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.)
142142
:type n_facet_class: rdflib.term.URIRef
143143
"""
144144

case_utils/ontology/src/ontology_and_version_iris.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
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.).
1616
"""
1717

18-
__version__ = "0.1.0"
18+
__version__ = "0.1.1"
1919

2020
import argparse
2121
import typing

0 commit comments

Comments
 (0)