Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.27 KB

full-text-search.md

File metadata and controls

30 lines (18 loc) · 1.27 KB

Full text search

PodOS can do a text search for things by their name. To do this, it makes use of a label index. This index is not covered by any standard, yet, and therefore described here shortly.

To enable the search feature a user has to link on or more index files via solid:privateLabelIndex to their WebID like this:

@prefix solid: <http://www.w3.org/ns/solid/terms#>.


</alice/profile/card#me>
solid:privateLabelIndex <privateLabelIndex.ttl> ;
.

This statement has to either be present in the WebID profile directly, or in the private preferences document.

The index itself is just a RDF document containing statements in the form

@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .

<subject> rdfs:label "Label literal" .

All the labels and subject URIs will be indexed by the PodOS search and make the <subject> findable.

Be aware that the term solid:privateLabelIndex is not part of the official vocabulary yet, but used by PodOS anyhow as a Proof of Concept. Consider it to be experimental and unstable.

For architectural decision about the search implementation see 0008-full-text-search.md.