Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix notation for queries and Turtle files #1

Open
samuelbarrett1234 opened this issue Sep 11, 2022 · 0 comments
Open

Prefix notation for queries and Turtle files #1

samuelbarrett1234 opened this issue Sep 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@samuelbarrett1234
Copy link
Owner

SPARQL languages and Turtle files allow prefixes, which make all of the URIs more readable. For example,

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name 
       ?email
WHERE
  {
    ?person  a          foaf:Person .
    ?person  foaf:name  ?name .
    ?person  foaf:mbox  ?email .
  }

showing prefixes in a query, and

@prefix eric:    <http://www.w3.org/People/EM/contact#> .
@prefix contact: <http://www.w3.org/2000/10/swap/pim/contact#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

eric:me contact:fullName "Eric Miller" .
eric:me contact:mailbox <mailto:e.miller123(at)example> .
eric:me contact:personalTitle "Dr." .
eric:me rdf:type contact:Person .

in a Turtle file.

@samuelbarrett1234 samuelbarrett1234 added the enhancement New feature or request label Sep 11, 2022
@samuelbarrett1234 samuelbarrett1234 changed the title Prefix notation Prefix notation for queries and Turtle files Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant