Semantic search

Jump to navigation Jump to search
Condition
Printout selection
Options
Parameters [
limit:

The maximum number of results to return
offset:

The offset of the first result
link:

Show values as links
headers:

Display the headers/property names
mainlabel:

The label to give to the main page name
intro:

The text to display before the query results, if there are any
outro:

The text to display after the query results, if there are any
searchlabel:

Text for continuing the search
default:

The text to display if there are no query results
import-annotation:

Additional annotated data are to be copied during the parsing of a subject
propsep:

The separator between the properties of a result entry
valuesep:

The separator between the values for a property of a result
template:

The name of a template with which to display the printouts
named args:

Name the arguments passed to the template
userparam:

A value passed into each template call, if a template is used
class:

An additional CSS class to set for the list
introtemplate:

The name of a template to display before the query results, if there are any
outrotemplate:

The name of a template to display after the query results, if there are any
sep:

The separator between results
Sort options
Delete
Add sorting condition
Debug output SQLStore
ASK Query
[[Concept:Step]]
SQL Query
SELECT DISTINCT
  t0.smw_id AS id,
  t0.smw_title AS t,
  t0.smw_namespace AS ns,
  t0.smw_iw AS iw,
  t0.smw_subobject AS so,
  t0.smw_sortkey AS sortkey, t0.smw_sort
FROM
  `smw_object_ids` AS t0
INNER JOIN
  `smw_di_blob` AS t2 ON t0.smw_id=t2.s_id
WHERE
  (t2.p_id=6517)
  AND t0.smw_iw!=':smw'
  AND t0.smw_iw!=':smw-delete'
  AND t0.smw_iw!=':smw-redi'
ORDER BY
  t0.smw_sort ASC
LIMIT
  55
OFFSET
  50
SQL Explain
IDselect_typetabletypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEt2refs_id, p_id, s_id_2p_id4const58Using temporary; Using filesort
1SIMPLEt0eq_refPRIMARY, smw_id, smw_iw, smw_iw_2PRIMARY4wiki.t2.s_id1Using where
Auxilliary Tables
No auxilliary tables used.
Query Metrics
Query-Size:1
Query-Depth:0
Errors and Warnings
None

range Step

The [http://tinkerpop.apache.org/docs/current/reference/#range-step range-step range] step

next Step

The [http://tinkerpop.apache.org/docs/current/reference/#terminal-steps terminal-steps next] step will return the next result.next(n) will return the next n results in a list

has Step

The [http://tinkerpop.apache.org/docs/current/reference/#has-step has-step has] step [http://tinkerpop.apache.org/javadocs/current/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#has-java.lang.String- has-java.lang.String- (javadoc)]filters vertices, edges, and vertex properties based on their properties. This step has quite a few variations.

flatMap Step

The [http://tinkerpop.apache.org/docs/current/reference/#general-steps general-steps flatMap] step transforms the current step in a one to many fashion.

id Step

The [http://tinkerpop.apache.org/docs/current/reference/#id-step id-step id] step maps the traversal to the ids of the current elements.

aggregate Step

The [http://tinkerpop.apache.org/docs/current/reference/#aggregate-step aggregate-step aggregate] step [http://tinkerpop.apache.org/javadocs/current/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#aggregate-java.lang.String- aggregate-java.lang.String- (javadoc)]is used to aggregate all the objects at a particular point of traversal into a Collection

match Step

The [http://tinkerpop.apache.org/docs/current/reference/#match-step match-step match] step see https://stackoverflow.com/questions/55609832/is-threre-a-document-about-how-gremlin-match-works

hasNext Step

The [http://tinkerpop.apache.org/docs/current/reference/#terminal-steps terminal-steps hasNext] step determines whether there are available results