Code Monkey home page Code Monkey logo

Comments (3)

StephenOTT avatar StephenOTT commented on June 12, 2024

@emmanvg was this to be implemented as a x_ custom property?
I am going through and adding the same thing to my implementation, and have been looking at a helper that would add x_notes x_opinion sort of thing with a array of strings. Could also be enriched with Data Markings

from cti-python-stix2.

emmanvg avatar emmanvg commented on June 12, 2024

Hi @StephenOTT, we have not made a solid decision on how to implement this API. At the very least we plan to leverage the Opinion object defined under STIX 2.1 for which we already have an implementation[1]. This code is yet to be released but we are close.

Out of curiosity. Why did you choose x_notes and x_opinion to be array of strings?

On the Data Markings side of things... The objects I linked here will support object_markings and granular_markings like any other SDO. Did you have something else in mind?

[1] https://github.com/emmanvg/cti-python-stix2/blob/1.1.0-release/stix2/v21/sdo.py#L371-L406
[2] https://github.com/emmanvg/cti-python-stix2/blob/1.1.0-release/stix2/v21/sdo.py#L295-L320

from cti-python-stix2.

StephenOTT avatar StephenOTT commented on June 12, 2024

Out of curiosity. Why did you choose x_notes and x_opinion to be array of strings?

Arrays was thought of because I can see a object being populated over multiple "steps", and possibly from different systems or people, and that there would be many notes that get added to the object. A array of objects works well, but I was keeping it simple in my first iteration of this. In general if an array is not used, then you are having to continually append a single string, which becomes messy and ripe for errors.

from cti-python-stix2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.