-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add some basic functions in the source #31
Comments
@dfjosullivan , can you comment please? I guess these methods underlie the block definitions we want to build. So if we build these methods out first, then it should be pretty useful. Can you advise on the best way to layout queries to underlie the table of block definitions? Like what do i call them, how should all of the methods be organised? |
Hi Also, I can't understand 5, since the same Feed object is continuously updated, and in fact it is the Observed Data and the Threat Sub Objects that have creation dates. Finally, the data observed also has its own created and modified dates. What specifically are your referring to in your query request? We can make anything, but what do you want? Can you be MECE (Mutually Exclusive, Collectively Exhaustive)? |
I was thinking something like this approach: filterme = Conditions(type="campaign",created__gt="2023-01-01",created__lt="2023-03-01") List_id = source.filter(filterme) |
filterme2 = Conditions(stixtype="SDO",library="stix2.1") To get all the SDO of the standard library. Filterme3 = Conditions(stixtype="Technique",library="attack") |
Yes, but its not like this at all, and by not understanding how it works, it is making t hard. Instead we need to assemble a query to get stix_id's based on certain constraints, like Then we simply run the TypeDBSource.get() method for each of the returned stix_id's The key is to understand the object variations and constraints well enough so that we can deal with all of them pretty easily. this is why i ask for more detail |
At the bone to build the query: Operators: equal, greater than (greater than equal), less than (less than equal). The stix fields I want to filter: Everything else we can build on top of this core function. |
completed and pushed, @dfjosullivan is to convert it onto the TypeDB function in Issue #34 |
Hello,
we discuss before to support a full STIX filter function like this but for now I would need just a set of primitives added:
Also cherry on the cake if we can combine the filters for example:
The text was updated successfully, but these errors were encountered: