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

The Archive Base Latest Questions

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

Is there a way to retrieve all categories from dcterms:subject inside dbpedia? As an

  • 0

Is there a way to retrieve all categories from dcterms:subject inside dbpedia?

As an example, in http://dbpedia.org/page/Eiffel_Tower I can see in dcterms:subject the following categories:

  • category:Former_world’s_tallest_buildings
  • category:Places_with_restrictions_on_photography
  • category:Michelin_Guide_starred_restaurants_and_chefs
  • category:Historic_Civil_Engineering_Landmarks
  • category:1889_architecture
  • …

I wish to retrieve all category:xxx values in dbpedia.
Is there a way?

  • 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-23T07:22:32+00:00Added an answer on May 23, 2026 at 7:22 am

    If you go a do a COUNT query to see how many categories are in dbpedia using the following SPARQL query:

    SELECT COUNT(DISTINCT ?category) AS ?count WHERE {?subject dcterms:subject ?category}
    

    you’ll get that dbpedia has 503788 categories. If you query for all the categories the endpoint will not give you the whole 503788 categories since it has a cap on how many results you can get back. But you can issue multiple queries by using LIMIT and OFFSET. For example to get the first 1000 categories you can do the following query:

    SELECT DISTINCT ?category WHERE {?subject dcterms:subject ?category} LIMIT 1000 OFFSET 0
    

    I don’t know how are you going to use this information but my recommendation would be to run multiple queries with incrementing the offset (e.g. 1000, 2000, 3000) and cache the results in whatever storage you are using. You can basically write a program that does executes the queries and places the results in the cache.

    Do remember however that the categories in DBPedia are hierarchical, so one category is a borader category from several others.

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

Sidebar

Related Questions

Is there a way to retrieve all Javascript variables within a page? For example,
Is there any way to retrieve all friends in a particular network? For example,
Is there a good way to retrieve all of a specific attribute from a
Is there a way in numpy to retrieve all items in an array except
Using the CRM views, is there a way to retrieve a list of all
Is there a way to query the database and retrieve a list of all
Is there a way to retrieve first n elements from a Dictionary in C#?
is there a way to retrieve type T from IEnumerable<T> through reflection? e.g. i
I'm searching for a way to retrieve all the triggers where there is an
Is there a way to retrieve all the contact photos in one go? I

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.