Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Extracting rdf:type from rdf file

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Extracting rdf:type from rdf file

    <?xml version="1.0"?>
     
    <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:cd="http://www.recshop.fake/cd#">
     
    <rdf:Description
    rdf:about="http://www.recshop.fake/cd/Empire Burlesque">
    <typeforalll:class
    rdf:datatype="http://www.w3.org/2001/XMLSchema#int">61</typeforall:class>
    <cd:artist>Bob Dylan</cd:artist>
    <cd:country>USA</cd:country>
    <cd:company>Columbia</cd:company>
    <cd:price>10.90</cd:price>
    <cd:year>1985</cd:year>
    </rdf:Description>



    from the above sample rdf file, how to extract rdf:type ie, "class" using apache jena.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Extracting rdf:type from rdf file

    Also posted at Extracting rdf:type from rdf file
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. extracting file content into array
    By phyzix5761 in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: November 6th, 2012, 03:10 PM
  2. RDF File parsing
    By informtopradip in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: December 20th, 2011, 07:05 AM
  3. Problem extracting data from file
    By hello_world in forum File I/O & Other I/O Streams
    Replies: 17
    Last Post: August 21st, 2011, 09:35 PM

Tags for this Thread