-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsearch-data.ttl
More file actions
28 lines (26 loc) · 1.75 KB
/
Copy pathsearch-data.ttl
File metadata and controls
28 lines (26 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@prefix ldh: <https://w3id.org/atomgraph/linkeddatahub#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dh: <https://www.w3.org/ns/ldt/document-hierarchy#> .
@prefix dct: <http://purl.org/dc/terms/> .
<> a dh:Item ;
dct:title "Search data" ;
dct:description "Search for resources using text keywords" ;
rdf:_1 <#content> .
<#content> a ldh:XHTML ;
rdf:value """<div xmlns="http://www.w3.org/1999/xhtml">
<p class="lead">Search for resources using text keywords</p>
<div>
<h2 id="text-search">Text search</h2>
<p>You can lookup resources by typing a phrase (it does not have to be complete, start with a few letters) into the <a href="../../reference/user-interface/#document-tree">search box</a> at the top of the left sidebar.</p>
<p>A dropdown list will appear if there are any matches. Use up/down keys or mouse click to select one of the results, and you will be redirected to its document.</p>
<p>The matching is done by looking for substrings using SPARQL <code>regex()</code> in common literal properties such as <code>dct:title</code>, <code>rdfs:label</code>, <code>foaf:name</code> etc. You can find the exact query in <samp>Queries / Select labelled</samp>.</p>
<p>The same widget is used for autocomplete inputs in the <a href="../../reference/user-interface/#action-bar">create/edit forms</a>.</p>
<p>
<img alt="SPARQL endpoint" src="../../uploads/8c4383351477a5405a9883d23d9255670b9396f7"></img>
</p>
</div>
<div>
<h2 id="structured-search">Structured search</h2>
<p>You can use SPARQL to <a href="../query-data/">query data</a> from the application's SPARQL service.</p>
</div>
</div>"""^^rdf:XMLLiteral .