I am new to the ontology field. My question is a clarification one rather than a problem. The information that am dealing with is written in RDF format. I built my own RDFS ontology and I want to populate that ontology from the RDF data that I have. How can I do that with Jena? Does the naming of resources/properties need to be the same between RDF data and my RDFS ontology? An example is appreciated.

Also, the difference between RDF and RDFS is still not so clear to me. Can I consider RDF as an ontology but with limited capabilities (in encoding the knowledge)?

asked 15 Jan '13, 08:14

sam123's gravatar image

accept rate: 0%

edited 16 Jan '13, 09:45

Signified's gravatar image

Signified ♦

You can read through the jena tutorial on instance creation: http://jena.sourceforge.net/tutorial/RDF_API/ Once you have created your individuals, you can assign types to them:

OntClass class = model.getOntClass( "your type/class URI" )
instance.addRDFType( class );

to add a predefined property to your instance:

OntProperty prop = m.getOntProperty( "your property URI" );
instance.addLiteral(prop, "value of your property");

As you can see, you are referring to your RDFS ontology by using the URIs from it.

permanent link

answered 16 Jan '13, 05:28

Barna's gravatar image

accept rate: 0%

Assignment 1

Due: Oct 5, 2012

Subject: Modelling data in semantic web using Protégé

DBLP website (http://www.informatik.uni-trier.de/~ley/db) is a portal providing information about computer science research publications. You can access the citation information (titles, authors, journal/conference name, volume, issue, page numbers, etc.) of conference and journal papers and also search them by keywords.

Design an RDF/RDFS Ontology for the information presented in DBLP. Concepts to consider are but not limited to:

. Publications . Conferences . Workshops . Journals . Series . Books . Authors . .

The ontology should be able to support the following queries:

. Find papers written by a particular author. . Find papers published in a journal in a particular volume and number. . Find papers which have "semantic web" in their title. . Find authors with publications in a given journal in a particular year. . Find co-authors of a certain author.


. You need to submit your model in 3 formats RDF/XML, N3, Turtle (3 files). . You must use Protege 4.2 software to create the ontology. . The schema part of your ontology should be reasonably comprehensive; the instance level need not be complete (few examples that represent the above queries are enough). . The ontology should be consistent and verifiable against a reasoner. . You must use rdfs:label and rdfs:comment to document your classes (as many). . You must at least use the following rdf/rdfs class/prop/attr: - rdf:type, rdfs:subClassOf, rdfs:subPropertyOf, rdf:Statement, rdfs:domain, rdfs:range.

permanent link

answered 15 Apr '13, 15:34

Maysaa's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 15 Jan '13, 08:14

question was seen: 1,642 times

last updated: 15 Apr '13, 15:34