-
RDF with JAVA
Hi,
Any one have an idea about how to see the contents of RDF from JAVA netbeans application.
I did something to check with Watson ontology search engine and got a lot of links for RDF, but is it possible to check and see the content of one of these RDFs, and if so how?
Thanks a lot in advance
-
RDF files are in XML format. Simply you can see the content suing any editor like Notepad and so on.
If you want to see the content using NetBeans then import the file into a project and just open it. You can see the content.
-
Thanks for your reply.
I tried the attched example, I searched about key words from Watson ontologies and then I got some RDF links. what I really need is to read the content of RDF. Please try to check the attached example and let me know by small example
Thanks a lot
-
Where is the attachment? I cannot find anything on your last post.
-
Sorry
the rar file is 2 MB, I do not know how to upload .
-
Go to advanced replay, you can attache anything. You can see a button next to the 'Post Quick Replay' in Quick Replay area.
-
Even in the advance reply, I got this message
RDF.zip:
Your file of 2.06 MB bytes exceeds the forum's limit of 97.7 KB for this filetype.
thanks
-
Yeah, I forget to mention that. Sorry about that. You cannot attach 2 MB file here in the forum. Cannot send a URL here.
-
sorry i could not
I tried to use JAWS to search on ontologies from watosn and wordnet and got a lot of rdf. the task is to read the contents of those RDFs
thats it
-
Do you want to see the content or read the content using Java? In your very first post you said that you want to open a RDF file in NetBeans, now you want to read it?
Following is a sample RDF file, do you want to read the content programatically?
Code:
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<channel rdf:about="http://example.org/rss.rdf">
<title>Example Feed</title>
<link>http://www.example.org</link>
<description>Simply for the purpose of demonstration.</description>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://example.org/item/"/>
</rdf:Seq>
</items>
</channel>
</rdf:RDF>
-
Actually, I want to read teh content of RDF to search about some content !!!! thats it
-
-
Code:
BufferedReader inFile = new BufferedReader(new FileReader([I]your_file_path[/I]));