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

  • Home
  • SEARCH
  • 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 7765377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:09:08+00:00 2026-06-01T15:09:08+00:00

I am currently trying to learn how to query RDF data with SPARQL using

  • 0

I am currently trying to learn how to query RDF data with SPARQL using resources on DBPedia and experimenting with the Virtuoso SPARQL Query Editor , but I seem to have misunderstood something.

For example, I am trying to find out the director name of Pulp Fiction, using this resource :
http://dbpedia.org/resource/Pulp_Fiction, so my (simple) query is:

SELECT ?dirName
FROM <http://dbpedia.org/resource/Pulp_Fiction>
WHERE 
{ 
     ?s <http://dbpedia.org/property/director> ?dirName.
}

It works but the result is a URI resource : http://dbpedia.org/resource/Quentin_Tarantino.
Now i want to retrieve the birth name of the director, so i tried

SELECT ?dirRes ?dirName 
FROM <http://dbpedia.org/resource/Pulp_Fiction>
WHERE 
{ 
    ?s      <http://dbpedia.org/property/director>  ?dirRes. 
    ?dirRes <http://dbpedia.org/ontology/birthDate> ?dirName.
}

without success, the result is an empty array…

Can someone help me with this ?

Thank you !

  • 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-06-01T15:09:10+00:00Added an answer on June 1, 2026 at 3:09 pm

    The FROM part selects the database that you want to query, not the entity.

    Remember that RDF consists of triples that have subject-predicate-object structure. You’re looking for:

    Pulp_Fiction director ?director
    

    So let’s query for that:

    SELECT * {
      <http://dbpedia.org/resource/Pulp_Fiction> <http://dbpedia.org/property/director> ?director.
    }
    

    Now to get properties of the ?director resource, add more triples to the query:

    SELECT * {
      <http://dbpedia.org/resource/Pulp_Fiction> <http://dbpedia.org/property/director> ?director.
      ?director <http://dbpedia.org/ontology/birthDate> ?birthdate.
    }
    

    You can make the query shorter by using predefined prefixes instead of the full <...> URIs. You can get a list by clicking “Namespace prefixes” in the top right corner. If you have the choice between using dbpprop and dbpedia-owl, always go with the latter because the classes and properties in that namespace are better managed. Result:

    SELECT * {
      dbpedia:Pulp_Fiction dbpedia-owl:director ?director.
      ?director dbpedia-owl:birthDate ?birthdate.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to learn C++ currently, but I'm having issues with the code below.
I'm using the Stack Exchange Data Explorer to learn SQL, but I think the
I'm currently trying to learn the ins and outs of XNA/C# but I'm currently
I am currently trying to learn how to implement MVVM using Unity and Caliburn
I have been experimenting and trying to learn JQuery, using AJAX to consume a
I'm currently trying to learn some Prolog (using ECLiPSe). From time to time I
I am currently trying to learn a bit of Cocoa (using the book Cocoa
Im currently trying to learn some stuff about encryption, it's algorithms and how it
I am currently trying to learn all new features of C#3.0. I have found
I am currently trying to learn C and I have come to a problem

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.