-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
31 changed files
with
1,070 additions
and
354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
graph | ||
===== | ||
|
||
.. automodule:: stix2.equivalence.graph | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
object | ||
====== | ||
|
||
.. automodule:: stix2.equivalence.object | ||
:members: |
5 changes: 5 additions & 0 deletions
5
...pi/equivalence/pattern/compare/stix2.equivalence.pattern.compare.comparison.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
comparison | ||
============== | ||
|
||
.. automodule:: stix2.equivalence.pattern.compare.comparison | ||
:members: |
5 changes: 5 additions & 0 deletions
5
...i/equivalence/pattern/compare/stix2.equivalence.pattern.compare.observation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
observation | ||
============== | ||
|
||
.. automodule:: stix2.equivalence.pattern.compare.observation | ||
:members: |
5 changes: 5 additions & 0 deletions
5
...quivalence/pattern/transform/stix2.equivalence.pattern.transform.comparison.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
comparison | ||
============== | ||
|
||
.. automodule:: stix2.equivalence.pattern.transform.comparison | ||
:members: |
5 changes: 5 additions & 0 deletions
5
...uivalence/pattern/transform/stix2.equivalence.pattern.transform.observation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
observation | ||
============== | ||
|
||
.. automodule:: stix2.equivalence.pattern.transform.observation | ||
:members: |
5 changes: 5 additions & 0 deletions
5
.../equivalence/pattern/transform/stix2.equivalence.pattern.transform.specials.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
specials | ||
============== | ||
|
||
.. automodule:: stix2.equivalence.pattern.transform.specials | ||
:members: |
5 changes: 0 additions & 5 deletions
5
.../equivalence/patterns/compare/stix2.equivalence.patterns.compare.comparison.rst
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...equivalence/patterns/compare/stix2.equivalence.patterns.compare.observation.rst
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...ivalence/patterns/transform/stix2.equivalence.patterns.transform.comparison.rst
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...valence/patterns/transform/stix2.equivalence.patterns.transform.observation.rst
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
...quivalence/patterns/transform/stix2.equivalence.patterns.transform.specials.rst
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pattern | ||
============== | ||
|
||
.. automodule:: stix2.equivalence.pattern | ||
:members: |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.