Yan Yan - 2 months ago 24
Java Question

How to get all properties from a URI (jena, RDF, dbpedia)?

Suppose the URI is

http://dbpedia.org/page/Ansungtangmyun
from the Named Graph
http://dbpedia.org
, within Data Space
dbpedia.org


This resource includes the following properties:


  • dbo:abstract

  • dbo:wikipageid

  • dct:subject

  • rdfs:comment



etc.

What I have tried is to get one property at a time by exploring the graph. I am using Jena. To enhance the performance, I would like to ask whether there is a way/API to get all properties at once?

Answer

First thing, I'd use the resource ID URI --

http://dbpedia.org/resource/Ansungtangmyun

-- instead of the HTML page URI --

http://dbpedia.org/page/Ansungtangmyun

-- which is to say, this query (and its live results) --

SELECT ?p ?o
WHERE 
  {
     <http://dbpedia.org/resource/Ansungtangmyun>  ?p  ?o
  }

You might also be interested in this (and its live results) --

DESCRIBE <http://dbpedia.org/resource/Ansungtangmyun>
Comments