Skip to content

Remove list representations from individual-Message class #77

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
Sep 27, 2024
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
4 changes: 0 additions & 4 deletions case.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,6 @@
"@type": "xsd:boolean",
"@value": true
},
"olo:length": null,
"olo:slot": null,
"uco-core:hasFacet": [
{
"@id": "kb:cc127ee8-9166-51c3-a531-d3fe4e6ab024",
Expand All @@ -801,8 +799,6 @@
"@type": "xsd:boolean",
"@value": true
},
"olo:length": null,
"olo:slot": null,
"uco-core:hasFacet": [
{
"@id": "kb:e5a13089-b18d-5a7d-9f02-6ceaa2dc616a",
Expand Down
3 changes: 1 addition & 2 deletions case_mapping/uco/observable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1629,14 +1629,13 @@ def __init__(self, name=None, facets=None):


class Message(ObservableObject):
def __init__(self, *args: Any, indexed_items=None, **kwargs: Any) -> None:
def __init__(self, *args: Any, **kwargs: Any) -> None:
"""
A message is a discrete unit of electronic communication intended by the source for consumption by some
recipient or group of recipients. [based on https://en.wikipedia.org/wiki/Message]
"""
super().__init__(*args, **kwargs)
self["@type"] = "uco-observable:Message"
self.append_indexed_items(indexed_items)


class DiskPartitionFacet(Facet):
Expand Down