Results 1 to 13 of 13

Thread: RDF with JAVA

  1. #1
    ma903rh is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

    Default 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

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    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.

  3. #3
    ma903rh is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

    Default

    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

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    ma903rh is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

    Default

    Sorry
    the rar file is 2 MB, I do not know how to upload .

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Go to advanced replay, you can attache anything. You can see a button next to the 'Post Quick Replay' in Quick Replay area.

  7. #7
    ma903rh is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

    Default

    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

  8. #8
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Yeah, I forget to mention that. Sorry about that. You cannot attach 2 MB file here in the forum. Cannot send a URL here.

  9. #9
    ma903rh is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

    Default

    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

  10. #10
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    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?

    Java 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>

  11. #11
    ma903rh is offline Member
    Join Date
    Mar 2010
    Posts
    10
    Rep Power
    0

    Default

    Actually, I want to read teh content of RDF to search about some content !!!! thats it

  12. #12
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  13. #13
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •