I'm trying to figure out how to implement RDF in my Drupal 6 site. Ideally, I'd like to be able to apply the RDF Calendar ontology to events that appear on my site.
I believe that one of the first steps in doing so is to go to evoc/import and import the vocabulary from: "http://www.w3.org/2002/12/cal/ical#" (using the Prefix "cal").
When I do this, I get the same form returned to me with no confirmation or error message.
Looking at the code, I figured out that I should have a new record in the rdf_namespaces table (which I did), and a bunch of new fields in the evoc_rdf_classes and/or evoc_rdf_properties tables.
Where did I go wrong?
Thanks in advance,
-mike
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | evoc_message.zip | 25.38 KB | xli |
Comments
Comment #1
scor commentedyou seem to have the same problem as #385582: use a local SPARQL endpoint for retrieving RDF vocabularies. The endpoint used by default in the module is sometimes down. Can you try to import one of the vocabularies listed in the import form? See also the issue #385582: use a local SPARQL endpoint for retrieving RDF vocabularies for a work around.
Comment #2
ultimikeStéphane,
Based on your advise, here's what I tried:
1. I went to evoc/import and tried to import the "doap" vocabulary.
2. I received a "The namespace for doap has been created" message, but no classes or properties appear to have been imported.
3. I then tried the same thing for the "skos" vocabulary and received a "The namespace for skos has been created" message long with a bunch of other "successfully imported" messages. Checking the DB, it appears that both classes and properties were imported.
How exactly do I go about importing the RDF Calendar vocabulary locally? Do I just download the endpoint and use a local URI to import it? I looked into issue #385582 but I'm still not sure about the workaround. Are you referring to your comment #8?
Thanks in advance,
-mike
Comment #3
scor commentedI was able to import the ical vocabulary no problem on my dev box. What I would suggest you do for now is edit evoc.module and try another endpoint in the evoc_fetch_vocabulary() function. and yes, I'm referring to #8 in that issue.
Comment #4
xli commentedHi Stéphane,
I just start learning drupal. I encounter same problem when importing external vocabulary and am not sure what I did wrong. I tried to import vocabularies like dc, dcterms, dcmitype, skos, doap, foaf. dcmitype is successfully imported. All others have problems (so that suggests sparql endpoint is OK). No response for doap. foaf, dcterms, skos are partially imported (seems classes are OK and properties are not). Since you may be interested in the error message, I attach to this post.
Thanks for your work,
-xli
Comment #5
scor commentedThe error
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'range) VALUES ('dcterms', 'modified', 'Date Modified', 'Date on which the resour' at line 1 query: INSERT INTO evoc_rdf_properties (prefix, id, label, comment, domain, range) VALUES ('dcterms', 'modified', 'Date Modified', 'Date on which the resource was changed.', '', 'g.1:Literal')is related to #492670: Errors installing module which has been fixed. please try the latest dev snapshot.
Comment #6
Anonymous (not verified) commentedJust to note, the endpoint I've had the most success with is:
Comment #7
jadaxia commentedI have the same problem.when I import dc,I have an error below:
The SPARQL endpoint http://www.sparql.org/sparql returned an error. Please check it and make sure it allows to load from URIs via FROM clauses.
* warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\rdf\modules\evoc\evoc.module on line 199.
* warning: Invalid argument supplied for foreach() in D:\xampp\htdocs\rdf\modules\evoc\evoc.module on line 199.
I modified evoc.module,changed "$endpoint = 'http://www.sparql.org/sparql';" to "$endpoint = 'http://demo.openlinksw.com/sparql/'; " or "$endpoint = 'http://jena.hpl.hp.com:2020/sparql';" the same error as upon. When I changed it to "$endpoint = 'http://localhost/rdf/sparql_endpoint';" I received a "The namespace for dc has been created" message, but no classes or properties have been imported.