You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fb0b61f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(yasqe): always include the SPARQL Anything vocabularies
Adds the SPARQL Anything namespaces xyz (http://sparql.xyz/facade-x/data/),
fx (http://sparql.xyz/facade-x/ns/) and fxe (http://sparql.xyz/facade-x/engine/)
to ALWAYS_INCLUDED. SPARQL Anything publishes no RDF files, so the fx magic
property, class and functions and the fxe options are listed there.
- fetchPrefixData.js adds the prefixes of ALWAYS_INCLUDED to the prefix.cc
data, so xyz, fx, fxe (and railml) survive the refresh at build time.
- The bundled terms get an optional fifth list of functions, suggested by a
new function autocompleter where an expression can start.
Always include the SPARQL Anything vocabularies: the `xyz:`, `fx:` and `fxe:` prefixes are always in the bundled prefix list (also after a prefix.cc refresh), the `fx:anySlot` magic property, the `fx:Root` class and the `fxe:` options (`fxe:location`, `fxe:csv.headers`...) are suggested as properties and classes, and a new `function` autocompleter suggests the `fx:` functions (`fx:entity`, `fx:String.substring`...) where an expression can start.
MatGUI ships the prefix.cc list, so this works offline too. A few prefixes are always in it, with these namespaces, whatever prefix.cc says: `era:` (ERA ontology), `railml:` (railML 3), `rtm:` (RailTopoModel) and the three [SPARQL Anything](https://sparql-anything.cc) namespaces `xyz:` (`http://sparql.xyz/facade-x/data/`), `fx:` (`http://sparql.xyz/facade-x/ns/`) and `fxe:` (`http://sparql.xyz/facade-x/engine/`). Typing one of them in a query, such as `fxe:location`, adds its `PREFIX` declaration.
718
+
717
719
### Endpoint Quick Switch
718
720
719
721
Quick switch endpoints let you change the SPARQL endpoint of a tab with a single click. They are listed in the **Quick switch** group at the top of the endpoint dropdown (see [Endpoint Picker](#endpoint-picker)).
@@ -862,7 +864,30 @@ Ctrl+clicking on `http://dbpedia.org/resource/European_Union` automatically quer
862
864
Press `Ctrl+Space` after `a` (or `rdf:type`) to get class suggestions, or in the position of a property to get property suggestions. MatGUI suggests:
863
865
864
866
1.**Used in this endpoint**: the classes and properties the endpoint of the tab actually uses, most used first, with the number of instances (classes) or triples (properties) next to them. This also covers vocabularies that are not registered anywhere, such as railML 3, the ERA ontology or your own ontologies.
865
-
2.**Linked Open Vocabularies**: matching classes and properties of the most used vocabularies in [LOV](https://lov.linkeddata.es/dataset/lov/). MatGUI ships this list, so no request is made to LOV while you type. Terms that the endpoint already suggested are not repeated, and a term is inserted as a prefixed name with its `PREFIX` when LOV knows the vocabulary's preferred prefix. The ERA ontology (`era:`), railML 3 (`railml:`) and RailTopoModel (`rtm:`) are always included, even though they are not in LOV.
867
+
2.**Linked Open Vocabularies**: matching classes and properties of the most used vocabularies in [LOV](https://lov.linkeddata.es/dataset/lov/). MatGUI ships this list, so no request is made to LOV while you type. Terms that the endpoint already suggested are not repeated, and a term is inserted as a prefixed name with its `PREFIX` when LOV knows the vocabulary's preferred prefix. The ERA ontology (`era:`), railML 3 (`railml:`), RailTopoModel (`rtm:`) and the SPARQL Anything vocabularies (`fx:`, `fxe:`, see below) are always included, even though they are not in LOV.
868
+
869
+
**SPARQL Anything**
870
+
871
+
The [SPARQL Anything](https://sparql-anything.cc) terms are always suggested, so you can write its queries without looking up the documentation:
872
+
873
+
-`fx:` (`http://sparql.xyz/facade-x/ns/`): the `fx:anySlot` magic property and the `fx:Root` class as properties and classes, and the functions, such as `fx:entity`, `fx:literal`, `fx:String.substring` or `fx:LevenshteinDistance`, wherever an expression can start (in `BIND`, `FILTER`, a `SELECT` expression...). A function also matches on its local name, so `substr` finds `fx:String.substring`.
874
+
-`fxe:` (`http://sparql.xyz/facade-x/engine/`): the options of a SPARQL Anything `SERVICE` clause, such as `fxe:location`, `fxe:media-type`, `fxe:csv.headers` or `fxe:json.path`.
875
+
-`xyz:` (`http://sparql.xyz/facade-x/data/`): the namespace of the generated data. Its terms come from your data (`xyz:name`), so only the prefix is known, unless the endpoint uses them.
BIND(fx:entity("https://example.org/show/", fx:String.toLowerCase(?name)) AS ?iri)
889
+
}
890
+
```
866
891
867
892
Without typing anything, the endpoint's most used terms are listed. While you type, a suggestion matches on its full IRI, its prefixed name (`era:Op`) or, when you type a plain word (`Operat`), on any part of its local name.
0 commit comments