From florent.jochaud at uni-bayreuth.de Wed Dec 12 17:16:21 2007 From: florent.jochaud at uni-bayreuth.de (Florent Jochaud) Date: Wed, 12 Dec 2007 17:16:21 +0100 Subject: [Rdf2go-devel] rollback Message-ID: <002801c83cda$5592cbc0$00b86340$@jochaud@uni-bayreuth.de> Hi, I noticed there is a commit() method for Model and ModelSet. So I wonder why there is no rollback. Or maybe there is such a method but I couldn't find it? Regards, florent --------------------------------------------------------- Lehrstuhl f?r Angewandte Informatik IV Universit?tsstrasse 30 D-95440 Bayreuth Germany Office: Building FAN D, Room 1.24 Fon: +49 (0)921 / 55-7342 Fax: +49 (0)921 / 55-7339 From voelkel at fzi.de Wed Dec 12 18:28:49 2007 From: voelkel at fzi.de (Max Voelkel) Date: Wed, 12 Dec 2007 18:28:49 +0100 Subject: [Rdf2go-devel] rollback In-Reply-To: <002801c83cda$5592cbc0$00b86340$@jochaud@uni-bayreuth.de> References: <002801c83cda$5592cbc0$00b86340$@jochaud@uni-bayreuth.de> Message-ID: <396406089.20071212182849@fzi.de> Hi Florent, FJ> I noticed there is a commit() method for Model and ModelSet. So I wonder why FJ> there is no rollback. Or maybe there is such a method but I couldn't find FJ> it? indeed, there is no rollback. Rollback would require the notion of transactions, otherwise the effect of concurrent usage would be unclear. Kind Regards, Max -- Max V?lkel voelkel at fzi.de | www.Xam.de office +49 721 96 54-854 mobile +49 171 83 59 678 -- FZI Forschungszentrum Informatik an der Universit?t Karlsruhe Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe Tel.: +49-721-9654-0, Fax: +49-721-9654-959 Stiftung des b?rgerlichen Rechts, Az: 14-0563.1 Regierungspr?sidium Karlsruhe. Vorstand: Prof. Dr.-Ing. R?diger Dillmann, Dipl. Wi.-Ing. Michael Flor Prof. Dr. Dr.-Ing. Jivka Ovtcharova, Prof. Dr. rer. nat. Rudi Studer Vorsitzender des Kuratoriums: Ministerialdirigent G?nther Le?nerkraus From leo.sauermann at dfki.de Thu Dec 13 12:38:37 2007 From: leo.sauermann at dfki.de (Leo Sauermann) Date: Thu, 13 Dec 2007 12:38:37 +0100 Subject: [Rdf2go-devel] xsd datatypes: yearMonthDuration and dayTimeDuration Message-ID: <476119BD.3090403@dfki.de> Hi RDF2Go developers, (and sesame developers, maybe this is also interesting for you) In RDF2Go's XSD namespace definition, the yearMonthDuration and dayTimeDuration were added with experimental namespaces. org.ontoware.rdf2go.vocabulary.XSD /** * As discussed in http://www.w3.org/2001/sw/BestPractices/XSCH/xsch-sw-20050127/#section-duration */ public static final URI _dayTimeDuration = new URIImpl( "http://www.w3.org/2004/10/xpath-datatypes#dayTimeDuration", false); This has changed since 23.1.2007 when XQuery 1.0 and XPATH 2.0 became standardized as W3C recommendations. Refer to http://www.w3.org/TR/xpath-datamodel/#types-predefined The official URIs for these types are: xs:dayTimeDuration xs:yearMonthDuration According to http://www.w3.org/TR/xpath-datamodel/#notation, xs: is bound to |http://www.w3.org/2001/XMLSchema, resulting in: ||http://www.w3.org/2001/XMLSchema|#dayTimeDuration |http://www.w3.org/2001/XMLSchema| #yearMonthDuration Max, this can be fixed anytime now in RDF2Go, if you haven't done it already best Leo -- ____________________________________________________ DI Leo Sauermann http://www.dfki.de/~sauermann Deutsches Forschungszentrum fuer Kuenstliche Intelligenz DFKI GmbH Trippstadter Strasse 122 P.O. Box 2080 Fon: +49 631 20575-116 D-67663 Kaiserslautern Fax: +49 631 20575-102 Germany Mail: leo.sauermann at dfki.de Geschaeftsfuehrung: Prof.Dr.Dr.h.c.mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 ____________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://ontoware.org/pipermail/rdf2go-devel/attachments/20071213/fd710cbc/attachment-0001.html From voelkel at fzi.de Thu Dec 13 14:10:08 2007 From: voelkel at fzi.de (Max Voelkel) Date: Thu, 13 Dec 2007 14:10:08 +0100 Subject: [Rdf2go-devel] xsd datatypes: yearMonthDuration and dayTimeDuration In-Reply-To: <476119BD.3090403@dfki.de> References: <476119BD.3090403@dfki.de> Message-ID: <646888990.20071213141008@fzi.de> Hi Leo, LS> org.ontoware.rdf2go.vocabulary.XSD .. LS> This has changed since 23.1.2007 when XQuery 1.0 and XPATH 2.0 became LS> standardized as W3C recommendations. LS> Refer to LS> http://www.w3.org/TR/xpath-datamodel/#types-predefined LS> According to http://www.w3.org/TR/xpath-datamodel/#notation, xs: is bound to LS> |http://www.w3.org/2001/XMLSchema, LS> resulting in: LS> LS> ||http://www.w3.org/2001/XMLSchema|#dayTimeDuration LS> LS> |http://www.w3.org/2001/XMLSchema| LS> #yearMonthDuration Um, almost. It results in http://www.w3.org/2001/XMLSchemadayTimeDuration and http://www.w3.org/2001/XMLSchemayearMonthDuration no "#" or "/" are used. I asked the W3C list on this. Once clarified, I'll fix it. Thanks Leo! Kind Regards, Max -- Max V?lkel voelkel at fzi.de | www.Xam.de office +49 721 96 54-854 mobile +49 171 83 59 678 -- FZI Forschungszentrum Informatik an der Universit?t Karlsruhe Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe Tel.: +49-721-9654-0, Fax: +49-721-9654-959 Stiftung des b?rgerlichen Rechts, Az: 14-0563.1 Regierungspr?sidium Karlsruhe. Vorstand: Prof. Dr.-Ing. R?diger Dillmann, Dipl. Wi.-Ing. Michael Flor Prof. Dr. Dr.-Ing. Jivka Ovtcharova, Prof. Dr. rer. nat. Rudi Studer Vorsitzender des Kuratoriums: Ministerialdirigent G?nther Le?nerkraus From leo.sauermann at dfki.de Fri Dec 14 15:12:42 2007 From: leo.sauermann at dfki.de (Leo Sauermann) Date: Fri, 14 Dec 2007 15:12:42 +0100 Subject: [Rdf2go-devel] xsd datatypes: yearMonthDuration and dayTimeDuration In-Reply-To: <646888990.20071213141008@fzi.de> References: <476119BD.3090403@dfki.de> <646888990.20071213141008@fzi.de> Message-ID: <47628F5A.8080608@dfki.de> It was Max Voelkel who said at the right time 13.12.2007 14:10 the following words: > Hi Leo, > > LS> org.ontoware.rdf2go.vocabulary.XSD .. > > LS> This has changed since 23.1.2007 when XQuery 1.0 and XPATH 2.0 became > LS> standardized as W3C recommendations. > LS> Refer to > LS> http://www.w3.org/TR/xpath-datamodel/#types-predefined > > LS> According to http://www.w3.org/TR/xpath-datamodel/#notation, xs: is bound to > LS> |http://www.w3.org/2001/XMLSchema, > LS> resulting in: > LS> > LS> ||http://www.w3.org/2001/XMLSchema|#dayTimeDuration > LS> > LS> |http://www.w3.org/2001/XMLSchema| > LS> #yearMonthDuration > > Um, almost. > > It results in > > http://www.w3.org/2001/XMLSchemadayTimeDuration > and > http://www.w3.org/2001/XMLSchemayearMonthDuration > > no "#" or "/" are used. > > I asked the W3C list on this. Once clarified, I'll fix it. > ?!?!? I never have seen something like this in RDF. You coded the rest of the class using normal # separators - what the fuss now with two extra properies? http://www.w3.org/TR/2004/PR-webarch-20041105/#xml-namespaces if in doubt, read the jena code, they are the reference impl anyway: 24 /** 25 * The XSD namespace. This is the real XML Schema namespace 26 * and so lacks the RDF-friendly # character. 27 * @deprecated in order to transition to RDF-friendly version replaced by {@link #getURI()} 28 */ 29 public static String NS = XSDDatatype.XSD; http://jena.cvs.sourceforge.net/jena/jena2/src/com/hp/hpl/jena/vocabulary/XSD.java?revision=1.12&view=markup 31 /** 32 * The RDF-friendly version of the XSD namespace 33 * with trailing # character. 34 */ 35 public static String getURI() { return NS + "#"; } 36 > Thanks Leo! > > Kind Regards, > Max > -- > Max V?lkel > voelkel at fzi.de | www.Xam.de > office +49 721 96 54-854 > mobile +49 171 83 59 678 > -- > FZI Forschungszentrum Informatik an der Universit?t Karlsruhe > Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe > Tel.: +49-721-9654-0, Fax: +49-721-9654-959 > Stiftung des b?rgerlichen Rechts, Az: 14-0563.1 Regierungspr?sidium Karlsruhe. > Vorstand: Prof. Dr.-Ing. R?diger Dillmann, Dipl. Wi.-Ing. Michael Flor > Prof. Dr. Dr.-Ing. Jivka Ovtcharova, Prof. Dr. rer. nat. Rudi Studer > Vorsitzender des Kuratoriums: Ministerialdirigent G?nther Le?nerkraus > > > -- ____________________________________________________ DI Leo Sauermann http://www.dfki.de/~sauermann Deutsches Forschungszentrum fuer Kuenstliche Intelligenz DFKI GmbH Trippstadter Strasse 122 P.O. Box 2080 Fon: +49 631 20575-116 D-67663 Kaiserslautern Fax: +49 631 20575-102 Germany Mail: leo.sauermann at dfki.de Geschaeftsfuehrung: Prof.Dr.Dr.h.c.mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 ____________________________________________________ From voelkel at fzi.de Fri Dec 14 15:26:20 2007 From: voelkel at fzi.de (Max Voelkel) Date: Fri, 14 Dec 2007 15:26:20 +0100 Subject: [Rdf2go-devel] from XML namespaces to RDF URIs In-Reply-To: <47628F5A.8080608@dfki.de> References: <476119BD.3090403@dfki.de> <646888990.20071213141008@fzi.de> <47628F5A.8080608@dfki.de> Message-ID: <1215807900.20071214152620@fzi.de> Hi, and thanks Leo! http://www.w3.org/TR/2004/PR-webarch-20041105/#xml-namespaces says: --- For flat namespaces, concatenation is one useful mapping. *If* namespace URIs that end with a hash (?#?) are chosen, then simple concatenation of the namespace URI and the local name creates a URI for a secondary resource (the identified term). This technique is used for many [RDFXML] namespaces. --- *If not* ... the document says nothing. LS> if in doubt, read the jena code, they are the reference impl anyway: LS> 24 /** LS> 25 * The XSD namespace. This is the real XML Schema namespace LS> 26 * and so lacks the RDF-friendly # character. LS> 27 * @deprecated in order to transition to RDF-friendly version replaced by {@link #getURI()} LS> 28 */ LS> 29 public static String NS = XSDDatatype.XSD; LS> http://jena.cvs.sourceforge.net/jena/jena2/src/com/hp/hpl/jena/vocabulary/XSD.java?revision=1.12&view=markup LS> 31 /** LS> 32 * The RDF-friendly version of the XSD namespace LS> 33 * with trailing # character. LS> 34 */ LS> 35 public static String getURI() { return NS + "#"; } LS> 36 This means, the Jena-people re-refined the concatenation rules for *this particular* namespace. For semantic web to work, all other RDF implementors should choose the same way. It would be nice to find a document from W3C that says: --- uri(ns,localname) = if (ns.endsWith("#") or ns.endsWith("/")) return ns + localname else return ns + "#" + localname --- Kind Regards, Max -- Max V?lkel voelkel at fzi.de | www.Xam.de office +49 721 96 54-854 mobile +49 171 83 59 678 -- FZI Forschungszentrum Informatik an der Universit?t Karlsruhe Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe Tel.: +49-721-9654-0, Fax: +49-721-9654-959 Stiftung des b?rgerlichen Rechts, Az: 14-0563.1 Regierungspr?sidium Karlsruhe. Vorstand: Prof. Dr.-Ing. R?diger Dillmann, Dipl. Wi.-Ing. Michael Flor Prof. Dr. Dr.-Ing. Jivka Ovtcharova, Prof. Dr. rer. nat. Rudi Studer Vorsitzender des Kuratoriums: Ministerialdirigent G?nther Le?nerkraus From richard at cyganiak.de Fri Dec 14 16:26:34 2007 From: richard at cyganiak.de (Richard Cyganiak) Date: Fri, 14 Dec 2007 15:26:34 +0000 Subject: [Rdf2go-devel] xsd datatypes: yearMonthDuration and dayTimeDuration In-Reply-To: <47628F5A.8080608@dfki.de> References: <476119BD.3090403@dfki.de> <646888990.20071213141008@fzi.de> <47628F5A.8080608@dfki.de> Message-ID: <16D4FD9E-E18E-46D6-AB32-F11CD440AB43@cyganiak.de> You guys mix up two different things. In XML, x:foo is a method to disambiguate between different foos. It has nothing to do with concatenating or abbreviating URIs. This concatenation and abbreviation business is purely an RDF thing. If you read in some random XML document that namespace x is bound to a certain URI, and then DO NOT EVER start concatenating element names to that namespace URI. That makes no sense in an XML context. Only RDF people who do not understand XML namespaces would ever do that. So much for XML. Now let's talk about RDF. In certain RDF standards, x:foo is used as a method for abbreviating URIs. RDF also uses URIs as names for datatypes. The RDF Semantics spec explicitly "imports" a couple of XML Schema datatypes, making them available in the RDF world, named by URIs of the form http://www.w3.org/2001/XMLSchema#xxxxx . See [1], there really is a hash. Summarizing example: XSD Schema integers are - in the XML world: a pair (http://www.w3.org/2001/XMLSchema, integer) - in the RDF world: a URI http://www.w3.org/2001/XMLSchema#integer I hope this clears up the confusion. Best, Richard [1] http://www.w3.org/TR/rdf-mt/#DTYPEINTERP On 14 Dec 2007, at 14:12, Leo Sauermann wrote: > It was Max Voelkel who said at the right time 13.12.2007 14:10 the > following words: >> Hi Leo, >> >> LS> org.ontoware.rdf2go.vocabulary.XSD .. >> >> LS> This has changed since 23.1.2007 when XQuery 1.0 and XPATH 2.0 >> became >> LS> standardized as W3C recommendations. >> LS> Refer to >> LS> http://www.w3.org/TR/xpath-datamodel/#types-predefined >> >> LS> According to http://www.w3.org/TR/xpath-datamodel/#notation, >> xs: is bound to >> LS> |http://www.w3.org/2001/XMLSchema, >> LS> resulting in: >> LS> >> LS> ||http://www.w3.org/2001/XMLSchema|#dayTimeDuration >> LS> >> LS> |http://www.w3.org/2001/XMLSchema| >> LS> #yearMonthDuration >> >> Um, almost. >> >> It results in >> >> http://www.w3.org/2001/XMLSchemadayTimeDuration >> and >> http://www.w3.org/2001/XMLSchemayearMonthDuration >> >> no "#" or "/" are used. >> >> I asked the W3C list on this. Once clarified, I'll fix it. >> > > ?!?!? > I never have seen something like this in RDF. > You coded the rest of the class using normal # separators - what the > fuss now with two extra properies? > > http://www.w3.org/TR/2004/PR-webarch-20041105/#xml-namespaces > > if in doubt, read the jena code, they are the reference impl anyway: > > 24 /** > 25 * The XSD namespace. This is the real XML Schema namespace > 26 * and so lacks the RDF-friendly # character. > 27 * @deprecated in order to transition to RDF-friendly > version replaced by {@link #getURI()} > 28 */ > 29 public static String NS = XSDDatatype.XSD; > > http://jena.cvs.sourceforge.net/jena/jena2/src/com/hp/hpl/jena/vocabulary/XSD.java?revision=1.12&view=markup > > 31 /** > 32 * The RDF-friendly version of the XSD namespace > 33 * with trailing # character. > 34 */ > 35 public static String getURI() { return NS + "#"; } > 36 > > > >> Thanks Leo! >> >> Kind Regards, >> Max >> -- >> Max V?lkel >> voelkel at fzi.de | www.Xam.de >> office +49 721 96 54-854 >> mobile +49 171 83 59 678 >> -- >> FZI Forschungszentrum Informatik an der Universit?t Karlsruhe >> Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe >> Tel.: +49-721-9654-0, Fax: +49-721-9654-959 >> Stiftung des b?rgerlichen Rechts, Az: 14-0563.1 Regierungspr?sidium >> Karlsruhe. >> Vorstand: Prof. Dr.-Ing. R?diger Dillmann, Dipl. Wi.-Ing. Michael >> Flor >> Prof. Dr. Dr.-Ing. Jivka Ovtcharova, Prof. Dr. rer. nat. Rudi Studer >> Vorsitzender des Kuratoriums: Ministerialdirigent G?nther Le?nerkraus >> >> >> > > > -- > ____________________________________________________ > DI Leo Sauermann http://www.dfki.de/~sauermann > > Deutsches Forschungszentrum fuer > Kuenstliche Intelligenz DFKI GmbH > Trippstadter Strasse 122 > P.O. Box 2080 Fon: +49 631 20575-116 > D-67663 Kaiserslautern Fax: +49 631 20575-102 > Germany Mail: leo.sauermann at dfki.de > > Geschaeftsfuehrung: > Prof.Dr.Dr.h.c.mult. Wolfgang Wahlster (Vorsitzender) > Dr. Walter Olthoff > Vorsitzender des Aufsichtsrats: > Prof. Dr. h.c. Hans A. Aukes > Amtsgericht Kaiserslautern, HRB 2313 > ____________________________________________________ > > > _______________________________________________ > Rdf2go-devel mailing list > Rdf2go-devel at ontoware.org > http://ontoware.org/mailman/listinfo/rdf2go-devel > From jjc at hpl.hp.com Fri Dec 14 15:40:31 2007 From: jjc at hpl.hp.com (Jeremy Carroll) Date: Fri, 14 Dec 2007 14:40:31 +0000 Subject: [Rdf2go-devel] from XML namespaces to RDF URIs In-Reply-To: <1215807900.20071214152620@fzi.de> References: <476119BD.3090403@dfki.de> <646888990.20071213141008@fzi.de> <47628F5A.8080608@dfki.de> <1215807900.20071214152620@fzi.de> Message-ID: <476295DF.706@hpl.hp.com> I would suggest not reading too much into the comments in the Jena code. They are from one Jena developer to another, explaining the motivations. The use of XML Schema namespace within RDF is almost entirely to do with the datatypes defined in XML Schema part 2. Within XML Schema, the appropriate namespace is the one without the hash. When serializing RDF in N3, in particular, it is possible to use the abbreviation xsd:int, for example, for which the prefix should expand to the namespace URI with a #. Since Jena is an RDF and OWL framework, and not an XML Schema framework, we find it more useful to use the XML Schema namespace with a #. I am pretty sure that this comment is *not* trying to make anything more of the issue than that. Jeremy Max Voelkel wrote: > Hi, and thanks Leo! > > http://www.w3.org/TR/2004/PR-webarch-20041105/#xml-namespaces says: > --- > For flat namespaces, concatenation is one useful mapping. > > *If* namespace URIs that end with a hash (?#?) are chosen, then simple > concatenation of the namespace URI and the local name creates a URI for a > secondary resource (the identified term). This technique is used for many > [RDFXML] namespaces. > --- > *If not* ... the document says nothing. > > LS> if in doubt, read the jena code, they are the reference impl anyway: > > LS> 24 /** > LS> 25 * The XSD namespace. This is the real XML Schema namespace > LS> 26 * and so lacks the RDF-friendly # character. > LS> 27 * @deprecated in order to transition to RDF-friendly version replaced by {@link #getURI()} > LS> 28 */ > LS> 29 public static String NS = XSDDatatype.XSD; > > LS> http://jena.cvs.sourceforge.net/jena/jena2/src/com/hp/hpl/jena/vocabulary/XSD.java?revision=1.12&view=markup > > LS> 31 /** > LS> 32 * The RDF-friendly version of the XSD namespace > LS> 33 * with trailing # character. > LS> 34 */ > LS> 35 public static String getURI() { return NS + "#"; } > LS> 36 > This means, the Jena-people re-refined the concatenation rules for *this > particular* namespace. For semantic web to work, all other RDF implementors > should choose the same way. > > It would be nice to find a document from W3C that says: > --- > > uri(ns,localname) = > if (ns.endsWith("#") or ns.endsWith("/")) > return ns + localname > else > return ns + "#" + localname > > --- > > Kind Regards, > Max > -- > Max V?lkel > voelkel at fzi.de | www.Xam.de > office +49 721 96 54-854 > mobile +49 171 83 59 678 > -- > FZI Forschungszentrum Informatik an der Universit?t Karlsruhe > Haid-und-Neu-Str. 10-14, D-76131 Karlsruhe > Tel.: +49-721-9654-0, Fax: +49-721-9654-959 > Stiftung des b?rgerlichen Rechts, Az: 14-0563.1 Regierungspr?sidium Karlsruhe. > Vorstand: Prof. Dr.-Ing. R?diger Dillmann, Dipl. Wi.-Ing. Michael Flor > Prof. Dr. Dr.-Ing. Jivka Ovtcharova, Prof. Dr. rer. nat. Rudi Studer > Vorsitzender des Kuratoriums: Ministerialdirigent G?nther Le?nerkraus > >