Skip to content
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

New ReasondConstruct SPARQL tag #49

Open
dosumis opened this issue Mar 7, 2023 · 2 comments
Open

New ReasondConstruct SPARQL tag #49

dosumis opened this issue Mar 7, 2023 · 2 comments
Assignees

Comments

@dosumis
Copy link
Member

dosumis commented Mar 7, 2023

has_neuron/region_connectivity

Currently added via Neo4J query:

https://github.com/VirtualFlyBrain/vfb-pipeline-polishing/blob/main/finalStep.py#L9

    MATCH p=(a:Neuron)-[r:synapsed_to]->(b:Neuron) WHERE exists(r.weight) SET a:has_neuron_connectivity SET b:has_neuron_connectivity,
    MATCH (n:Neuron)-[r:has_presynaptic_terminals_in]->(c:Synaptic_neuropil) SET n:has_region_connectivity,
    MATCH (n:Neuron)-[r:has_postsynaptic_terminal_in]->(c:Synaptic_neuropil) SET n:has_region_connectivity
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

CONSTRUCT {
	?x <http://n2o.neo/property/nodeLabel> "has_neuron_connectivity" .
}
WHERE {
  ?y synapsed_to: ?x . 
  ?y  rdfs:type owl:NamedIndividual .
  ?x  rdfs:type owl:NamedIndividual
}
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>

CONSTRUCT {
	?x <http://n2o.neo/property/nodeLabel> "has_neuron_connectivity" .
}
WHERE {
  ?y has_presynaptic_terminals_in: ?x . 
  ?y  rdfs:type owl:NamedIndividual
}

has_postsynaptic_terminal_in follows same pattern as has_presynaptic_terminals_in

@dosumis
Copy link
Member Author

dosumis commented Mar 7, 2023

Depends on #48

@dosumis
Copy link
Member Author

dosumis commented Mar 7, 2023

Once this is implemented, the Neo4j Code should be removed from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants