Open
Conversation
joernhees
commented
Aug 31, 2018
config/defaults.py
Outdated
| MUTPB_FV_SAMPLE_MAXN = 32 # max n of instantiations to sample from top k | ||
| MUTPB_FV_QUERY_LIMIT = 256 # SPARQL query limit for the top k instantiations | ||
| MUTPB_SP = 0.05 # prob to simplify pattern (warning: can restrict exploration) | ||
| MUTPB_DN = 0.5 # prob to try adding a deep and narrow path to a pattern |
Member
Author
There was a problem hiding this comment.
probably should be a lot lower in final version
|
|
||
| logger = logging.getLogger(__name__) | ||
|
|
||
|
|
Member
Author
There was a problem hiding this comment.
please don't modify unrelated stuff
graph_pattern.py
Outdated
| len(gp) == len(cbgp) == len(cgp) | ||
| and len(gp.nodes) == len(cgp.nodes) | ||
| and len(gp.edges) == len(cgp.edges) | ||
| and sorted(gp.identifier_counts().values()) == |
Member
Author
There was a problem hiding this comment.
please don't modify unrelated stuff
graph_pattern.py
Outdated
| s not in identifiers and | ||
| o not in identifiers | ||
| s not in identifiers and | ||
| o not in identifiers |
Member
Author
There was a problem hiding this comment.
please don't modify unrelated stuff
graph_pattern.py
Outdated
| :return: Counter of all identifiers in this graph pattern. | ||
| """ | ||
| assert not(exclude_vars and vars_only) | ||
| assert not (exclude_vars and vars_only) |
Member
Author
There was a problem hiding this comment.
that's actually nicer, but please don't modify unrelated stuff ;)
gp_query.py
Outdated
| res += update | ||
|
|
||
|
|
||
| def useful_path_inst_query( |
Member
Author
There was a problem hiding this comment.
deep_query_path_inst_query
graph_pattern.py
Outdated
| """Generates a SPARQL select sample query from the graph pattern. | ||
|
|
||
| Examples: | ||
| TODO |
Member
Author
There was a problem hiding this comment.
this would really help...
graph_pattern.py
Outdated
| GraphPattern([ | ||
| (count_node, count_out, rand_var_out) | ||
| ]), | ||
| gp)) |
Member
Author
There was a problem hiding this comment.
gp_ = self + GraphPattern() + gp ?
graph_pattern.py
Outdated
| res = textwrap.dedent(res) | ||
| return gp_._sparql_prefix(res) | ||
|
|
||
| def to_sparql_useful_path_query( |
Member
Author
There was a problem hiding this comment.
rename as in gp_query.py
requirements.txt
Outdated
| #rdflib>=4.2.1 | ||
| git+git://github.com/RDFLib/rdflib@master#egg=rdflib | ||
| rdflib>=4.2.1 | ||
| #git+git://github.com/RDFLib/rdflib@master#egg=rdflib |
…of deep_and_narrwo_path_mutation
…path_(inst_)query
…hildin AND added the possibility to choose n => length of directions AND some Codestyle changes AND comments => english
…probabilities for fix_var_mut and deep_narrow_mut
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wip PR to see changes and leave comments