Commit Graph

162 Commits (bb1155e67841b40a28e69d82358e50512353d3e1)

Author SHA1 Message Date
Emmanuelle Vargas-Gonzalez 72a12e96ba update guide example, conf.py and remove some unused imports 2021-03-01 13:14:03 -05:00
Emmanuelle Vargas-Gonzalez ff5014c606 expose configuration options, combine weight dictionary, update tests 2021-03-01 12:27:52 -05:00
Chris Lenk 4825f5e303 Small touchups 2021-02-19 16:57:15 -05:00
Emmanuelle Vargas-Gonzalez ecf952c07b it updated itself... 2021-02-19 14:50:52 -05:00
Emmanuelle Vargas-Gonzalez 2308528957 add text and example for equivalence.ipynb 2021-02-19 14:48:23 -05:00
Chris Lenk 35f4bb0443 Update the semantic equivalence user guide page
Differentiate between similarity and equivalence, and update functions
to their new names and locations.
2021-02-18 23:45:38 -05:00
Chris Lenk b7b1b54afb Remove 'six' from config 2021-02-18 23:39:24 -05:00
Chris Lenk 71889b173f Touch up filesystem docs 2020-12-11 11:28:26 -05:00
Desai, Kartikey H 20a9bb316c Fix #476 2020-12-10 22:10:24 -06:00
Emmanuelle Vargas-Gonzalez 92ab1227ed docstrings, changes to equivalence.ipynb 2020-10-16 17:12:52 -04:00
Emmanuelle Vargas-Gonzalez fc600df5f1 update .gitignore and conf.py 2020-10-16 16:43:12 -04:00
Emmanuelle Vargas-Gonzalez 5ec001d324 add new rst files and directories 2020-10-16 16:42:17 -04:00
Emmanuelle Vargas-Gonzalez 7d99a9dab2 remove docs in wrong locations or directories 2020-10-16 16:40:25 -04:00
Emmanuelle Vargas-Gonzalez fb705c4885
Graph Equivalence (#449)
* new packages for graph and object-based semantic equivalence

* new method graphically_equivalent for Environment, move equivalence methods out

* object equivalence function, methods used for object-based moved here.

* new graph_equivalence methods

* add notes

* add support for versioning checks (default disabled)

* new tests to cover graph equivalence and new methods

* added more imports to environment.py to prevent breaking changes

* variable changes, new fields for checks, reset depth check per call

* flexibility when object is not available on graph.

* refactor debug logging message

* new file stix2.equivalence.graph_equivalence.rst and stix2.equivalence.object_equivalence.rst for docs

* API documentation for new modules

* additional text required to build docs

* add more test methods for list_semantic_check an graphically_equivalent/versioning

* add logging debug messages, code clean-up

* include individual scoring on results dict, fix issue on list_semantic_check not keeping highest score

* include results as summary in prop_scores, minor tweaks

* Update __init__.py

doctrings update

* apply feedback from pull request

- rename semantic_check to reference_check
- rename modules to graph and object respectively to eliminate redundancy
- remove created_by_ref and object_marking_refs from graph WEIGHTS and rebalance

* update docs/ entries

* add more checks, make max score based on actual objects checked instead of the full list, only create entry when type is present in WEIGHTS dictionary

update tests to reflect changes

* rename package patterns -> pattern

* documentation, moving weights around

* more documentation moving

* rename WEIGHTS variable for graph_equivalence
2020-10-16 11:35:26 -04:00
Emmanuelle Vargas-Gonzalez 639769d885 expose API Reference for Pattern Equivalence for ReadTheDocs 2020-09-11 13:54:13 -04:00
Emmanuelle Vargas-Gonzalez 08137ff6be add serialization to API documentation 2020-07-22 15:38:17 -04:00
Emmanuelle Vargas-Gonzalez 6daa9bd8a5 fix internal links to stix2.parsing.rst#stix2.parsing.parse 2020-07-01 11:21:53 -04:00
Emmanuelle Vargas-Gonzalez f2e044115b add newlines for stix2.v20.rst, stix2.v21.rst, stix2.confidence.rst 2020-07-01 10:32:51 -04:00
Emmanuelle Vargas-Gonzalez 1477effb2f add content for stix2.pattern_visitor.rst 2020-07-01 10:32:05 -04:00
Emmanuelle Vargas-Gonzalez fb0207fda8 add stix2.pattern_visitor.rst 2020-07-01 10:30:05 -04:00
Emmanuelle Vargas-Gonzalez bc2a6322a9 update ts_support.ipynb 2020-06-30 23:11:59 -04:00
Emmanuelle Vargas-Gonzalez 056bc4de19 update custom.ipynb
update JSON to STIX 2.1
2020-06-30 22:54:40 -04:00
Emmanuelle Vargas-Gonzalez 03ca082a50 update stix2.parsing.rst 2020-06-30 22:39:58 -04:00
Emmanuelle Vargas-Gonzalez 1518a6d55e add file stix2.parsing.rst 2020-06-30 22:35:40 -04:00
Emmanuelle Vargas-Gonzalez 2f80b82139 update stix2.versioning.rst 2020-06-30 22:35:03 -04:00
Emmanuelle Vargas-Gonzalez a9af34b1e3 add file stix2.versioning.rst 2020-06-30 22:34:38 -04:00
Emmanuelle Vargas-Gonzalez de4ea5b805 edits to parsing.ipynb and workbench.ipynb
Create the warning admonitions correctly
2020-06-30 22:11:29 -04:00
Emmanuelle Vargas-Gonzalez e957e80126 remove stix2.core.rst 2020-06-30 22:04:40 -04:00
Chris Lenk d5d664ba41 Update docs for 2.1 as default 2020-06-26 16:43:19 -04:00
Chris Lenk d260aa8ebd Tweak custom SCO ID-generating properties docs 2020-03-05 00:11:24 -05:00
Desai, Kartikey H 5df319bcbb Add documentation about id-contributing properties for 2.1 custom SCOs 2020-03-05 00:11:24 -05:00
Desai, Kartikey H 02171996fa Add documentation about _id_contributing_properties for custom SCOs. Will add in code example once PR 354 is merged in 2020-03-05 00:11:24 -05:00
Desai, Kartikey H 47b28d1194 Fixes #323 2020-03-05 00:11:24 -05:00
Michael Chisholm c6b2b6fbfa Change the warning in the jupyter notebook for creating content,
regarding name collisions between method and property names, to
not pick on the Mapping methods specifically.  The problem is
more general than that: stix objects have more methods than those.
Instead of listing them all out, a more general statement is
made, that accessing those attributes will result in a bound
method, not a STIX property value.
2020-02-03 16:51:12 -05:00
Michael Chisholm 1cadeaa1c6 Added a warning to creating.ipynb about Mapping attributes: they
can't be used to access STIX object properties.
2020-01-29 16:01:15 -05:00
Chris Lenk a6fefff33d Fix semantic equivalence documentation 2020-01-07 15:49:06 -05:00
Chris Lenk a9932c09c8 Update Semantic Equivalence documentation 2019-12-23 17:02:21 -05:00
Chris Lenk 77eda29471 Add default weight_dict to documentation
for semantic equivalence
2019-12-11 13:13:36 -05:00
Desai, Kartikey H f6e75cd8f8 Add debug logging messages and add documentation to equivalence.ipynb 2019-12-06 10:46:27 -05:00
Chris Lenk b5612c9dc2 Update semantic equivalence docs
- Comparing object type not in config dictionary now gives a warning and
result of 0 instead of an error.
- Adds an example of the new detailed debug output.
2019-10-16 09:08:03 -04:00
Chris Lenk 39e1ddbbf6 Update semantic equivalence docs 2019-10-14 14:31:44 -04:00
Emmanuelle Vargas-Gonzalez b9927fd4a5 update .ipynb files with correct references. update package requirements 2019-09-30 13:16:06 -04:00
Chris Lenk 47551b8cc1 Add documentation for semantic equivalence 2019-09-25 14:28:24 -04:00
Chris Lenk 401c9ad950
Merge branch 'master' into stix2.1 2019-09-23 12:26:27 -04:00
Desai, Kartikey H 8447c9fcd9 Add few tests to improve some code coverage 2019-09-11 14:21:41 -04:00
Chris Lenk 886ef8464d Add contributing note about isort 2019-08-29 16:14:40 -04:00
Chris Lenk 1a719db40a Add examples to docs for removing properties 2019-07-25 14:22:29 -04:00
Kartikey Desai 1bf12221a0 Update _valid_refs doc and add test to v20 test suite 2019-05-13 09:18:50 -04:00
Kartikey Desai 8946308527 Updated documentation for _valid_refs 2019-05-10 12:30:52 -04:00
Kartikey Desai 989f17e673 Add documentation for _valid_refs 2019-05-10 11:54:59 -04:00