openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 2
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 4104 times and has 1 reply Next Thread
Aug 7, 2005 9:58:37 AM

Thomas
Visitor


Germany
Joined: Aug 4, 2005
Posts: 2
Status: Offline

confused   how do create a new sub Class?

Hello,

how do create a new sub Class in my repository?

I know how to create a new class

Graph newConceptGraph = new GraphImpl();
ValueFactory factory = newConceptGraph.getValueFactory();
URI conceptURI = factory.createURI"http://my.new.concept/");
newConceptGraph.add(newConceptURI, URIImpl.RDF_TYPE, URIImpl.RDFS_CLASS);
repository.addGraph(newConceptGraph);

Thanks a lot,

Thomas
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Aug 8, 2005 9:19:46 AM

arjohn
OpenRDF project lead
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1289
Status: Offline
Re: how do create a new sub Class?

How about:
newConceptGraph.add(subClassURI, URIImpl.RDFS_SUBCLASSOF, superClassURI);

----------------------------------------
Arjohn Kampman, OpenRDF project lead, Aduna
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]