Answer: We use collecton to describe the groups that store only specifed members.We describe the collection using attribute rdf:parseType="Collection". Example: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cd="http://r4r.in/cd#"> <rdf:Description rdf:about="http://r4r.in/cd/Beatles"> <cd:artist rdf:parseType="Collection"> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/George"/> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/John"/> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/Paul"/> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/Ringo"/> </cd:artist> </rdf:Description> </rdf:RDF>
Question:
How you define collection in RDF? Answer:
We use collecton to describe the groups that store only specifed members.We describe the collection using attribute rdf:parseType="Collection". Example: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cd="http://r4r.in/cd#"> <rdf:Description rdf:about="http://r4r.in/cd/Beatles"> <cd:artist rdf:parseType="Collection"> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/George"/> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/John"/> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/Paul"/> <rdf:Description rdf:about="http://r4r.in/cd/Beatles/Ringo"/> </cd:artist> </rdf:Description> </rdf:RDF> Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
There should not be any Spelling Mistakes.
There should not be any Gramatical Errors.
Answers must not contain any bad words.
Answers should not be the repeat of same answer, already approved.