This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |
xmlns:foaf="http://xmlns.com/foaf/0.1/" | |
xmlns:dc="http://purl.org/dc/terms/" | |
xmlns:sioc="http://rdfs.org/sioc/ns#"> | |
<rdf:Description rdf:about="http://localhost/drupal/node/4"> | |
<rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Person"/> | |
<foaf:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Fariz</foaf:name> | |
<dc:date rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-04-06T23:06:09+07:00</dc:date> | |
<dc:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-04-06T23:06:09+07:00</dc:created> | |
<dc:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2011-04-07T18:23:26+07:00</dc:modified> | |
<sioc:has_creator rdf:resource="http://localhost/drupal/user/1"/> | |
<sioc:num_replies rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</sioc:num_replies> | |
<foaf:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Dr.</foaf:title> | |
</rdf:Description> | |
</rdf:RDF> |
Hey guys, I was born on 2011-04-06T23:06:09+07:00! I'm a baby then!
PS: This silliness comes when you mix up the semantic about a document and a thing described by that document.
The main problem with this scenario is that you have modeled yourself as a Web document. Drupal 7 has multiple entities, such as nodes and users. Nodes are meant for things like blog posts and other Web documents.
BalasHapusYou are currently modeling yourself as a page of content. If you attach a profile to your user, then you can add information about yourself. I know that the Profile2 module was planning on implementing a foaf:Person that was related to the sioc:UserAccount, but I haven't looked into that recently. Handling it this way does add some considerable complexity to the user interaction, so I wouldn't be surprised if it hasn't been fully fleshed out yet.
If you have any questions, you can start a discussion on the Semantic Web group. I have a hard time keeping up with blogs, so that's the best place to find me.