RDF Syntax Highlighting Examples

# NAME

RDF Syntax Highlighting Examples

# EXAMPLES

Here is some Turtle for syntax highlighting...

       @prefix foaf: <http://xmlns.com/foaf/0.1/>.

       <http://tobyinkster.co.uk/#i>
          a foaf:Person;
          foaf:name "Toby Inkster".

And here's how you might query it using SPARQL...

       PREFIX foaf: <http://xmlns.com/foaf/0.1/>
       SELECT ?name
       WHERE {
          <http://tobyinkster.co.uk/#i> foaf:name ?name.
       }

And this is the result set you might get:

       {
          "head": { "vars": ["name"] },
          "results": {
             "bindings": [
                {
                   "title": { "type": "literal", "value": "Toby Inkster" }
                }
             ]
          }
       }