Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6576527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:31:23+00:00 2026-05-25T15:31:23+00:00

Glad if someone can clarify. I always read that SQL and SPARQL are very

  • 0

Glad if someone can clarify.

I always read that SQL and SPARQL are very similar.
However, a lot of times i have seen sparql query without the FROM keyword.
You would assume that you have to query the datasource ‘FROM’ somewhere in the database
like how SQL behaves.

Example

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

How does it know where to look for? Like in SQL, look in Database1 – table1

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:31:24+00:00Added an answer on May 25, 2026 at 3:31 pm

    SPARQL queries are execute against an RDF dataset, which has two parts:

    • A single default graph: a set of triples with no name attached to them
    • Zero or more named graphs: a set of triples identified by a name

    You can specify the graph to query using the optional FROM or FROM NAMED clauses. Have a look at Specifying RDF Datasets. If you omit those clauses, then the query is executed on the default graph.


    Graphs and RDF dataset storage is implementation dependent. For example, using Jena ARQ you use a QueryExecutionFactory and you can initialize it in two ways:

    • passing a Model, which becomes the default graph on which queries are executed
    • passing a Dataset, which can contain a single default graph and several named graphs

    Code Examples for Jena ARQ are available here. Other implementation may be different.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would be very glad if someone can make clear for me example mentioned
there's this interesting problem i can not solve myself. I will be very glad,
I hope my question is understandable, else I'm glad to clarify. We have this
I develop with Actionscript and was glad to see that AIR 2.0 was going
I am trying to create a list view which as TextView that can display
Can someone explain to me why the form validation fails in chrome ? Pressing
I develop some application that has database wery generic so really can't use it
I have noticed that some of my ajax-heavy sites (ones I visit, not ones
I have to correct some C++/STL code. Unfortunately I have very little C++ experience
I can not solve this problem for a while. I would be glad for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.