|
|
Index
| Recent Threads
| Who's Online
| User List
| Search
| Help
| |
|
Forum has been closed down This forum has been closed down due to extensive spamming activities. Please use the mailing list instead. |
![]() |
openRDF.org Forum » AliBaba & Elmo: Help » Thread: compiling SKOS: Unknown datatype: http://www.w3.org/1999/02/22-rdf-syntax-ns#Resource |
|
Total posts in this thread: 11
|
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Feb 26, 2008 4:17:11 PM
jtheuer Sesame Addict
|
Hi, In addition to my other problem, I try to complie SKOS: http://www.w3.org/2004/02/skos/core.rdf. The compilation fails with: SEVERE: Error processing http://www.w3.org/2004/02/skos/core#Collection Exception in thread "main" org.openrdf.elmo.exceptions.ElmoConversionException: Unknown datatype: http://www.w3.org/1999/02/22-rdf-syntax-ns#Resource But that datatype should somewhere in elmo because rdf-syntax (http://www.w3.org/1999/02/22-rdf-syntax-ns) and rdf-schema (http://www.w3.org/2000/01/rdf-schema) both reference each other (wired design, anyway...) Am I wrong? Jan |
||
|
|
Feb 26, 2008 7:59:09 PM
james OpenRDF.org Consultant Canada Joined: Jul 21, 2005 Posts: 650 Status: Offline |
rdf:Resource is unknown, but rdfs:Resource is known. The schema should be using <http://www.w3.org/2000/01/rdf-schema#Resource> ---------------------------------------- Sesame Consultant http://leighnet.ca http://jamesrdf.blogspot.com |
|||
|
|
Feb 26, 2008 9:12:37 PM
jtheuer Sesame Addict
|
I assume, you know SKOS, so do you think the version of skos is wrong, then? You offered me to upload a new version of elmo-concept containing the SKOS ontologies. I'd really appreciate that. At the moment I do not really understand WHY the compilation fails. rdf:resource is references multiply times and even rdf-schema recerences rdf:Resource. So It should exist. Maybe you can tell me which #Resource has the wrong namespace? <rdfs:Class rdf:ID="Collection"> Thanks, Jan |
||
|
|
Feb 27, 2008 2:44:42 AM
james OpenRDF.org Consultant Canada Joined: Jul 21, 2005 Posts: 650 Status: Offline |
If using skos with beta2 use the following concepts jar. http://downloads.sourceforge.net/sesame/openrdf-elmo-1.0-beta2-concepts.jar I have updated the skos schema, which has the rdf/rdfs:Resources corrected. Note that this dose _not_ include the skos concepts - they still need to be created in another jar. You will also need to use the classpath argument from an earlier thread to include a skos-core.jar. ---------------------------------------- Sesame Consultant http://leighnet.ca http://jamesrdf.blogspot.com |
||
|
|
Feb 27, 2008 5:24:48 PM
jtheuer Sesame Addict
|
Thanks James, It seems to be fixed now. SKOS has been compiled. But I'm not able to build everything, if could please have a look at the generated sioc classes: /** A set of User accounts whose owners have a common purpose or interest. Can be used for access control purposes. */ There should be an extends rdf:Resource or owl:Class, or? I cannot build SCOT anymore, because it complains: SEVERE: Error processing http://scot-project.org/scot/ns#Tagcloud Exception in thread "main" org.openrdf.elmo.exceptions.ElmoConversionException: Unknown datatype: http://rdfs.org/sioc/ns#Usergroup But now it IS in the classpath (It seems to be the same error as in my earlier post, but I'm shure I set the classpath correct). Jan |
||
|
|
Feb 27, 2008 6:08:57 PM
james OpenRDF.org Consultant Canada Joined: Jul 21, 2005 Posts: 650 Status: Offline |
Usergroup concept is correct. It is an owl:Class, but not a subclass of owl:Class. Making it a subclass of rdfs:Resource is only done if it is explicitly in the ontology (most do). However, in this case that statement is commented out (as can be seen in the snippet below).
Post the command you are using and I'll give it a try. ---------------------------------------- Sesame Consultant http://leighnet.ca http://jamesrdf.blogspot.com |
|||
|
|
Feb 28, 2008 12:39:20 PM
jtheuer Sesame Addict
|
Here is the code (shell script) skos works, sioc seems to work but scot fails: I used the beta2 zip from sourceforge and the concepts.jar you posted yesterday Why doesn't Usergroup extend Resource or Entity? I thought all elmo concepts have one super interface? I'd need that for type-safety. #!/bin/sh |
||
|
|
Feb 28, 2008 1:03:16 PM
james OpenRDF.org Consultant Canada Joined: Jul 21, 2005 Posts: 650 Status: Offline |
A common super class is not enforced, but can be added with an '-e org.openrdf.concepts.rdfs.Resource' argument.
When you use the -jar option the CLASSPATH variable is ignored, you will have to include the codegen.jar in the classpath and call its main class. See your previous post: http://www.openrdf.org/forum/mvnforum/viewthread?thread=1594 ---------------------------------------- Sesame Consultant http://leighnet.ca http://jamesrdf.blogspot.com |
|||||
|
|
Feb 28, 2008 7:09:29 PM
jtheuer Sesame Addict
|
stupid. I remember...
I'd like to see it enforced in a final release, because it would be easier to maintain third-party concepts. Thanks again, Jan |
|||
|
|
Feb 28, 2008 7:17:38 PM
jtheuer Sesame Addict
|
sorry, Entity is what I want as interface. Enforcing Resource doesn't make sence. But there is an issue when the using -e and the concept already extends the given class:
Jan |
||
|
|
[Show Printable Version of Thread] |