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 6001473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:50:23+00:00 2026-05-23T00:50:23+00:00

For some reason I can’t issue DESCRIBE queries using Redland ( librdf.org ), is

  • 0

For some reason I can’t issue DESCRIBE queries using Redland ( librdf.org ), is it possible to rewrite DESCRIBE as a CONSTRUCT QUERY for a given URI?

DESCRIBE <urn:my-uri>

I was thinking about writting it into something like this but I don’t think this is valid in SPARQL

CONSTRUCT  { ?subject ?predicate ?object }
WHERE      { 
               { ?subject ?predicate ?object } 
               AND { 
                   { <urn:my-uri> ?predicate ?object } 
                   OR { ?subject <urn:my-uri> ?object } 
                   OR { ?subject ?predicate <urn:my-uri> } 
               } 
           }
  • 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-23T00:50:24+00:00Added an answer on May 23, 2026 at 12:50 am

    Your are right that is not a valid SPARQL. The closest thing to your OR is UNION. And, there is no need for the AND operator, every triple pattern is by default a join not a union.

    For what you are trying is better to use a FILTER, like this example:

    CONSTRUCT  { ?subject ?predicate ?object }
    WHERE      { ?subject ?predicate ?object . 
                 FILTER (  ?subject = <urn:your_uri> || ?object = <urn:your_uri>)
               } 
    

    In some systems, for large knowledge bases, this query can be very expensive. And also if your database contains bNodes this query won’t get the description of those nodes, it will get just the internal code. For most cases, running a DESCRIBE manually can’t be accomplished with a single query and you’ll have to implement some recursive logic in order to get all the information that describes a URI.

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

Sidebar

Related Questions

Hi I'm using blueprint and for some reason I can't override some of their
For some reason I can't get Basic Authentication to work using PHP on my
For some reason I can get this to work, using single proxy everything seems
I'm trying to fire custom events using jquery but for some reason I can't
For some reason I can't seem to match a parentheses in Flex using Regex
For some reason I can't find a way to get the equivalents of sqlite's
For some reason I can't use runat=server as an attribute for the input tag
For some reason I can't hide WPF Toolkit's DataGridColumn. I am trying to do
I know PHP 5 already supports SQLite but for some reason I can't get
I'm fairly new to JQuery and for some reason I can't get the currently

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.