SPARQL Query #7
bshambaugh
started this conversation in
Ideas
Replies: 1 comment
-
**Rationale: Further Areas to Explore:** |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Original: Google Groups - SPARQL Query
seeAlso : Wireframes
seeAlso: YouTube Wireframe Animation
ch_1_2_sparql (SPARQL Query)
{transcript}
s1) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4)
This is the beginning of a SPARQL interface for EISPP. Eventually,
there is hope that the visual interface will allow autocompletion
of syntax, through menus, etcetera, to make construction of SPARQL 1.1
syntax easier.
s2) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_2)
One way we can begin a SPARQL query is by using the graph pattern
resulting from the Natural Language Query. We do this by checking the SELECT
box and clicking the entire graph pattern button. We see that only the
predicates are instances of ontologies. The classes are wildcards, which have syntax beginning with a question mark.
s3) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_3)
We can highlight one of the classes by clicking on it. This is visually indicated by a box around the syntax.
s4) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_4)
We can then change the selection to node. This may occur in the highlighting step.
s5) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_5)
Checking the change to instance checkbox will change the node to an instance which matches with the graph pattern
from the natural language query result.
s6) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_6)
We can also follow a similar pattern by selecting the edge for the Car_partOf:partOf predicate.
s7) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_7)
Checking the change to wildcard box changes the predicate to a wildcard representing any predicate.
s8) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_8)
We may then want to modify the node specifying the type of license we have. We can change it to the same
license as specified in the natural language query graph by selecting change to instance.
s9) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_9)
We can then click the query button to execute the query button to execute the query. Before this happens
note that we have the append to existing radio button selected, which means the result will be added to
existing output on the screen. Note also that we selected the left pane as the output location, meaning that
output will go to the location where the directed graph is. As indicated by the SPARQL Endpoints box, we are
only specifying one SPARQL endpoint. The output format selected is graph.
s10) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLb4_10), (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLex2r4)
Finally, after we clicked the query button we find that a second contribution by another contributor matches
the graph pattern specified in the SPARQL query.
s11) (EISPP_3_M_Fernandez_NLQ_2_OB_subs9_SPARQLex2r4b)
We can select the back to beginning button to go to the original result from the natural language query.
s12) (EISPP_3_M_Fernandez_NLQ_2)
The W3C SPARQL 1.1 Query Language Recommendation may be found at: http://www.w3.org/TR/sparql11-query
Beta Was this translation helpful? Give feedback.
All reactions