tracker r2824 - trunk/utils/services



Author: pvanhoof
Date: Fri Jan 23 09:59:36 2009
New Revision: 2824
URL: http://svn.gnome.org/viewvc/tracker?rev=2824&view=rev

Log:
Namespace change

Modified:
   trunk/utils/services/rdfxml2metadatasample.xsl
   trunk/utils/services/rdfxmlsample.xsl
   trunk/utils/services/service2rdf-xml.py

Modified: trunk/utils/services/rdfxml2metadatasample.xsl
==============================================================================
--- trunk/utils/services/rdfxml2metadatasample.xsl	(original)
+++ trunk/utils/services/rdfxml2metadatasample.xsl	Fri Jan 23 09:59:36 2009
@@ -40,7 +40,9 @@
 </xsl:template>
 
 <xsl:template match="rdf:RDF">
-<xsl:for-each select="rdfs:Property">
+<xsl:for-each select="rdf:Property">
+
+A
 
 <xsl:variable name="about" select="@rdf:about"/>
 

Modified: trunk/utils/services/rdfxmlsample.xsl
==============================================================================
--- trunk/utils/services/rdfxmlsample.xsl	(original)
+++ trunk/utils/services/rdfxmlsample.xsl	Fri Jan 23 09:59:36 2009
@@ -29,7 +29,7 @@
 <xsl:if test="count(rdfs:subClassOf) > 0">: <xsl:for-each select="rdfs:subClassOf/rdfs:Class"><xsl:if test="position() > 1">, </xsl:if><xsl:value-of select="substring-after(@rdf:about, '#')"/> </xsl:for-each> 
 </xsl:if> {
 		
-	<xsl:for-each select="/rdf:RDF/rdfs:Property/rdfs:domain[ rdf:resource=$about]">
+	<xsl:for-each select="/rdf:RDF/rdf:Property/rdfs:domain[ rdf:resource=$about]">
 
 	public <xsl:value-of select="substring-after(../rdfs:range/@rdf:resource, '#')"/><xsl:text> </xsl:text><xsl:value-of select="../rdfs:label"/> {
 	}

Modified: trunk/utils/services/service2rdf-xml.py
==============================================================================
--- trunk/utils/services/service2rdf-xml.py	(original)
+++ trunk/utils/services/service2rdf-xml.py	Fri Jan 23 09:59:36 2009
@@ -77,7 +77,7 @@
 
      for mdata in metadata.sections():
         splitted = mdata.split (":")
-        print "\t<rdfs:Property rdf:about=\"" + uri + "#" + splitted[1] + "\">"
+        print "\t<rdf:Property rdf:about=\"" + uri + "#" + splitted[1] + "\">"
         print "\t\t<rdfs:label>" + splitted[1] + "</rdfs:label>"
 
         for name, value in metadata.items (mdata):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]