After selecting a block, you can apply a block comment (Ctrl+Shift+/) or line comment (Ctrl+/) to it. The same shortcuts will remove existing comments from selected lines too.
Select a variable in a SPARQL query or a prefixed name (prefix label is renamed) and
rename it with
Refactor / Rename... or Shift+F6.
You can format your file according to pre-defined rules by pressing Ctrl+Alt+L in it. Also press Ctrl+Alt+O to remove unused prefix declarations.
Press Ctrl+Q to open the quick documentation popup for a prefixed name from an indexed ontology. Also hover the cursor over it to see its IRI.
Each prefixed name from an indexed ontology has the value of
attached on the right.
Code folding, auto-insertion of braces, brackets & quotes, matching brace/bracket highlighting, etc.
Errors are shown as you type. Among others, we catch syntax errors, undeclared prefixes, braces, etc.
URI prefix declaration
RDF and SPARQL looks up an URI prefix in prefix.cc or in the list of custom prefix declarations. Call the context actions on a prefixed name with Alt+Enter.
Custom URI prefix declarations
You can override an URI prefix declaration from prefix.cc by registering it in the project settings. Also you can share your custom declaration with team members.
Completion suggestions for prefixed names
Once your declared an URI prefix, you can fetch completion suggestions for corresponding prefix names with Ctrl+Space or just start typing if the prefixed name is from an indexed ontology.
Indexing of RDFS/OWL ontologies
The completion suggestions work the best with ontologies that are indexed locally. Press Alt+Enter on the URI of a prefix declaration to download the ontology.
Ontology mirrors for local indexing
For an RDFS/OWL ontology which isn't downloadable on its base URL in an RDF format, e.g.
https://schema.org/, you can define a mirror URL that is used instead.
SPARQL 1.1 Query/Update & Graph Store Protocols
SPARQL 1.1 endpoint
RDF and SPARQL, supports all endpoints that comply with
SPARQL 1.1 Protocol
standard. They are registered in
SPARQL Endpoint tool window on the right.
All SPARQL query forms
All SPARQL query forms are supported. The query results are collected in
8:Services tool window at the bottom. Press Alt+8 to open it up.
Cancelable query execution
Any query execution may be cancelled with the red square button in
8:Services tool window. The query request will be properly closed.
Query results formatting
URI prefix declarations are considered in the format of query results. RDF Literals are formatted following RDF Turtle 1.1 standard.
HTTP Basic Authentication
You can use SPARQL endpoints protected with the HTTP Basic Authentication. Enter username and password when registering an endpoint, they are stored safely with the Intellij IDEA SDK, read more.
Export query results to file
SPARQL query results may be exported into a file. Supported file formats: CSV, TSV, XML, JSON, Apache Thrift, Text. In case, the query results is RDF, all major RDF file formats are supported.