40 | | If you have a FOAF file and a foaf description of your foaf:Person, then the URI of that foaf:Person has to set in your config.php file. |
| 38 | If you have a FOAF file and a foaf description of your foaf:Person, then the URI of that foaf:Person has to be set in your {{{config.php}}}: |
| 39 | {{{ |
| 40 | // The location of your FOAF file on the web (This is also the data source) |
| 41 | $MY_FOAF_FILE_URL = "http://www.dfki.uni-kl.de/~schwarz/foaf.xml"; |
| 42 | |
| 43 | // Your URI in your FOAF file - Look this one up! |
| 44 | $MY_FOAF_URI = "http://www.dfki.uni-kl.de/~schwarz/foaf.xml#me"; |
| 45 | }}} |
| 46 | |
| 47 | ---- |
| 48 | === BIBTEX === |
| 49 | |
| 50 | We used bibtex2rdf from L3S (Hannover) to convert a text bibtex file to some RDF representation. |
| 51 | Unfortunately the bibtex2rdf tool is NOT (YET?) open-source, and therefore the jar-file is not includes in the rdfhomepage package. But if you install rdfhomepage and drop me (Sven) an email, and you will get the jar-file. |
| 52 | |
| 53 | Using the bibtex2jar tool, you can call the following to create/update your bibtex RDF file: |
| 54 | {{{ |
| 55 | set BIBFILE=ss.bib |
| 56 | set URI=http://www.dfki.uni-kl.de/~schwarz/rdf/ss_bib.rdf# |
| 57 | set OUT=bib_ss.rdf |
| 58 | java -jar bibtex2rdf.jar -baseuri %URI% %BIBFILE% %OUT% |
| 59 | }}} |
| 60 | |
| 61 | At the END of the bibtex-file there is a rdf:Seq like this |
| 62 | {{{ |
| 63 | <rdf:Seq rdf:about="http://www.dfki.uni-kl.de/~schwarz/rdf/ss_bib.rdf#referenceList"> |
| 64 | <rdf:li rdf:resource="http://www.dfki.uni-kl.de/~schwarz/rdf/ss_bib.rdf#Schwarz05"/> |
| 65 | <rdf:li rdf:resource="http://www.dfki.uni-kl.de/~schwarz/rdf/ss_bib.rdf#Schwarz06"/> |
| 66 | <rdf:li rdf:resource="http://www.dfki.uni-kl.de/~schwarz/rdf/ss_bib.rdf#GrimnesSchwarzSauermann06"/> |
| 67 | . . . |
| 68 | </rdf:Seq> |
| 69 | }}} |
| 70 | |
| 71 | Take the URI of that rdf:Seq (here this is http://www.dfki.uni-kl.de/~schwarz/rdf/ss_bib.rdf#referenceList ) and paste that URI in your {{{config.php}}}: |
| 72 | {{{ |
| 73 | // The name (not path) of your bibtex.rdf |
| 74 | define("BIBTEX_FILE_NAME", "bib_ss.rdf"); |
| 75 | |
| 76 | // The URL of your BibTeX file. (real BibTeX format, not RDF!) |
| 77 | $MY_BIB_TEX_URL = "http://www.dfki.uni-kl.de/~schwarz/ss.bib"; |
| 78 | |
| 79 | // The URI of a sequence of all the articles in your bibtex file |
| 80 | $MY_BIB_TEX_SEQ_URI = "http://www.dfki.uni-kl.de/~schwarz/rdf/ss_bib.rdf#referenceList"; |
| 81 | }}} |