community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1679364 [1/6] - in /comdev/projects.apache.org: scripts/import/ site/json/foundation/ site/json/projects/
Date Thu, 14 May 2015 13:27:58 GMT
Author: hboutemy
Date: Thu May 14 13:27:55 2015
New Revision: 1679364

URL: http://svn.apache.org/r1679364
Log:
translate category urls to category ids in generated json files

Modified:
    comdev/projects.apache.org/scripts/import/rdfparse.py
    comdev/projects.apache.org/site/json/foundation/projects.json
    comdev/projects.apache.org/site/json/projects/abdera.json
    comdev/projects.apache.org/site/json/projects/accumulo.json
    comdev/projects.apache.org/site/json/projects/ace.json
    comdev/projects.apache.org/site/json/projects/activemq.json
    comdev/projects.apache.org/site/json/projects/airavata.json
    comdev/projects.apache.org/site/json/projects/allura.json
    comdev/projects.apache.org/site/json/projects/ambari.json
    comdev/projects.apache.org/site/json/projects/any23.json
    comdev/projects.apache.org/site/json/projects/apr.json
    comdev/projects.apache.org/site/json/projects/archiva.json
    comdev/projects.apache.org/site/json/projects/aries.json
    comdev/projects.apache.org/site/json/projects/avro.json
    comdev/projects.apache.org/site/json/projects/axis-axis2.json
    comdev/projects.apache.org/site/json/projects/axis-sandesha2.json
    comdev/projects.apache.org/site/json/projects/beehive.json
    comdev/projects.apache.org/site/json/projects/bigtop.json
    comdev/projects.apache.org/site/json/projects/bookkeeper.json
    comdev/projects.apache.org/site/json/projects/buildr.json
    comdev/projects.apache.org/site/json/projects/bval.json
    comdev/projects.apache.org/site/json/projects/camel.json
    comdev/projects.apache.org/site/json/projects/cassandra.json
    comdev/projects.apache.org/site/json/projects/cayenne.json
    comdev/projects.apache.org/site/json/projects/celix.json
    comdev/projects.apache.org/site/json/projects/chemistry.json
    comdev/projects.apache.org/site/json/projects/chukwa.json
    comdev/projects.apache.org/site/json/projects/clerezza.json
    comdev/projects.apache.org/site/json/projects/climate.json
    comdev/projects.apache.org/site/json/projects/cloudstack.json
    comdev/projects.apache.org/site/json/projects/cocoon.json
    comdev/projects.apache.org/site/json/projects/commons-commons-bcel.json
    comdev/projects.apache.org/site/json/projects/commons-commons-bsf.json
    comdev/projects.apache.org/site/json/projects/commons-commons-chain.json
    comdev/projects.apache.org/site/json/projects/commons-commons-cli.json
    comdev/projects.apache.org/site/json/projects/commons-commons-codec.json
    comdev/projects.apache.org/site/json/projects/commons-commons-collections.json
    comdev/projects.apache.org/site/json/projects/commons-commons-compress.json
    comdev/projects.apache.org/site/json/projects/commons-commons-configuration.json
    comdev/projects.apache.org/site/json/projects/commons-commons-daemon.json
    comdev/projects.apache.org/site/json/projects/commons-commons-dbcp.json
    comdev/projects.apache.org/site/json/projects/commons-commons-dbutils.json
    comdev/projects.apache.org/site/json/projects/commons-commons-digester.json
    comdev/projects.apache.org/site/json/projects/commons-commons-discovery.json
    comdev/projects.apache.org/site/json/projects/commons-commons-el.json
    comdev/projects.apache.org/site/json/projects/commons-commons-email.json
    comdev/projects.apache.org/site/json/projects/commons-commons-exec.json
    comdev/projects.apache.org/site/json/projects/commons-commons-fileupload.json
    comdev/projects.apache.org/site/json/projects/commons-commons-functor.json
    comdev/projects.apache.org/site/json/projects/commons-commons-io.json
    comdev/projects.apache.org/site/json/projects/commons-commons-jci.json
    comdev/projects.apache.org/site/json/projects/commons-commons-jcs.json
    comdev/projects.apache.org/site/json/projects/commons-commons-jelly.json
    comdev/projects.apache.org/site/json/projects/commons-commons-jexl.json
    comdev/projects.apache.org/site/json/projects/commons-commons-jxpath.json
    comdev/projects.apache.org/site/json/projects/commons-commons-lang.json
    comdev/projects.apache.org/site/json/projects/commons-commons-launcher.json
    comdev/projects.apache.org/site/json/projects/commons-commons-logging.json
    comdev/projects.apache.org/site/json/projects/commons-commons-math.json
    comdev/projects.apache.org/site/json/projects/commons-commons-modeler.json
    comdev/projects.apache.org/site/json/projects/commons-commons-ognl.json
    comdev/projects.apache.org/site/json/projects/commons-commons-pool.json
    comdev/projects.apache.org/site/json/projects/commons-commons-primitives.json
    comdev/projects.apache.org/site/json/projects/commons-commons-proxy.json
    comdev/projects.apache.org/site/json/projects/commons-commons-scxml.json
    comdev/projects.apache.org/site/json/projects/commons-commons-validator.json
    comdev/projects.apache.org/site/json/projects/commons-commons-vfs.json
    comdev/projects.apache.org/site/json/projects/commons-commons-weaver.json
    comdev/projects.apache.org/site/json/projects/commons.json
    comdev/projects.apache.org/site/json/projects/continuum.json
    comdev/projects.apache.org/site/json/projects/cordova.json
    comdev/projects.apache.org/site/json/projects/couchdb.json
    comdev/projects.apache.org/site/json/projects/creadur-rat.json
    comdev/projects.apache.org/site/json/projects/creadur-tentacles.json
    comdev/projects.apache.org/site/json/projects/creadur-whisker.json
    comdev/projects.apache.org/site/json/projects/crunch.json
    comdev/projects.apache.org/site/json/projects/ctakes.json
    comdev/projects.apache.org/site/json/projects/curator.json
    comdev/projects.apache.org/site/json/projects/cxf.json
    comdev/projects.apache.org/site/json/projects/datafu.json
    comdev/projects.apache.org/site/json/projects/db-derby.json
    comdev/projects.apache.org/site/json/projects/db-torque.json
    comdev/projects.apache.org/site/json/projects/deltacloud.json
    comdev/projects.apache.org/site/json/projects/deltaspike.json
    comdev/projects.apache.org/site/json/projects/devicemap.json
    comdev/projects.apache.org/site/json/projects/directmemory.json
    comdev/projects.apache.org/site/json/projects/directory-directory-studio.json
    comdev/projects.apache.org/site/json/projects/directory-directory.json
    comdev/projects.apache.org/site/json/projects/directory.json
    comdev/projects.apache.org/site/json/projects/drill.json
    comdev/projects.apache.org/site/json/projects/empire-db.json
    comdev/projects.apache.org/site/json/projects/esme.json
    comdev/projects.apache.org/site/json/projects/etch.json
    comdev/projects.apache.org/site/json/projects/excalibur.json
    comdev/projects.apache.org/site/json/projects/falcon.json
    comdev/projects.apache.org/site/json/projects/felix.json
    comdev/projects.apache.org/site/json/projects/flex.json
    comdev/projects.apache.org/site/json/projects/flume.json
    comdev/projects.apache.org/site/json/projects/forrest.json
    comdev/projects.apache.org/site/json/projects/geronimo.json
    comdev/projects.apache.org/site/json/projects/giraph.json
    comdev/projects.apache.org/site/json/projects/gora.json
    comdev/projects.apache.org/site/json/projects/gump.json
    comdev/projects.apache.org/site/json/projects/hadoop.json
    comdev/projects.apache.org/site/json/projects/hama.json
    comdev/projects.apache.org/site/json/projects/harmony.json
    comdev/projects.apache.org/site/json/projects/hbase.json
    comdev/projects.apache.org/site/json/projects/hc-commons-httpclient.json
    comdev/projects.apache.org/site/json/projects/hc-httpcomponents-core.json
    comdev/projects.apache.org/site/json/projects/hc.json
    comdev/projects.apache.org/site/json/projects/helix.json
    comdev/projects.apache.org/site/json/projects/hive.json
    comdev/projects.apache.org/site/json/projects/hivemind.json
    comdev/projects.apache.org/site/json/projects/httpd-mod_ftp.json
    comdev/projects.apache.org/site/json/projects/isis.json
    comdev/projects.apache.org/site/json/projects/jackrabbit.json
    comdev/projects.apache.org/site/json/projects/jakarta-ecs.json
    comdev/projects.apache.org/site/json/projects/jakarta-jakarta-cactus.json
    comdev/projects.apache.org/site/json/projects/jakarta-oro.json
    comdev/projects.apache.org/site/json/projects/jakarta-regexp.json
    comdev/projects.apache.org/site/json/projects/james.json
    comdev/projects.apache.org/site/json/projects/jclouds.json
    comdev/projects.apache.org/site/json/projects/jmeter.json
    comdev/projects.apache.org/site/json/projects/jspwiki.json
    comdev/projects.apache.org/site/json/projects/juddi-scout.json
    comdev/projects.apache.org/site/json/projects/kafka.json
    comdev/projects.apache.org/site/json/projects/karaf.json
    comdev/projects.apache.org/site/json/projects/knox.json
    comdev/projects.apache.org/site/json/projects/lenya.json
    comdev/projects.apache.org/site/json/projects/libcloud.json
    comdev/projects.apache.org/site/json/projects/logging-log4cxx.json
    comdev/projects.apache.org/site/json/projects/logging-log4j.json
    comdev/projects.apache.org/site/json/projects/logging-log4net.json
    comdev/projects.apache.org/site/json/projects/logging-log4php.json
    comdev/projects.apache.org/site/json/projects/logging.json
    comdev/projects.apache.org/site/json/projects/lucene-lucene-core.json
    comdev/projects.apache.org/site/json/projects/lucene-solr.json
    comdev/projects.apache.org/site/json/projects/lucenenet.json
    comdev/projects.apache.org/site/json/projects/mahout.json
    comdev/projects.apache.org/site/json/projects/manifoldcf.json
    comdev/projects.apache.org/site/json/projects/maven.json
    comdev/projects.apache.org/site/json/projects/mesos.json
    comdev/projects.apache.org/site/json/projects/metamodel.json
    comdev/projects.apache.org/site/json/projects/mina-ftpserver.json
    comdev/projects.apache.org/site/json/projects/mina-sshd.json
    comdev/projects.apache.org/site/json/projects/mina-vysper.json
    comdev/projects.apache.org/site/json/projects/mina.json
    comdev/projects.apache.org/site/json/projects/mrunit.json
    comdev/projects.apache.org/site/json/projects/myfaces-tobago.json
    comdev/projects.apache.org/site/json/projects/myfaces.json
    comdev/projects.apache.org/site/json/projects/nutch.json
    comdev/projects.apache.org/site/json/projects/ode.json
    comdev/projects.apache.org/site/json/projects/ofbiz.json
    comdev/projects.apache.org/site/json/projects/olingo.json
    comdev/projects.apache.org/site/json/projects/oltu.json
    comdev/projects.apache.org/site/json/projects/onami.json
    comdev/projects.apache.org/site/json/projects/oodt.json
    comdev/projects.apache.org/site/json/projects/oozie.json
    comdev/projects.apache.org/site/json/projects/openjpa.json
    comdev/projects.apache.org/site/json/projects/openmeetings.json
    comdev/projects.apache.org/site/json/projects/opennlp.json
    comdev/projects.apache.org/site/json/projects/openoffice.json
    comdev/projects.apache.org/site/json/projects/openwebbeans.json
    comdev/projects.apache.org/site/json/projects/perl.json
    comdev/projects.apache.org/site/json/projects/phoenix.json
    comdev/projects.apache.org/site/json/projects/pig.json
    comdev/projects.apache.org/site/json/projects/pivot.json
    comdev/projects.apache.org/site/json/projects/poi.json
    comdev/projects.apache.org/site/json/projects/portals.json
    comdev/projects.apache.org/site/json/projects/qpid.json
    comdev/projects.apache.org/site/json/projects/rave.json
    comdev/projects.apache.org/site/json/projects/river.json
    comdev/projects.apache.org/site/json/projects/roller.json
    comdev/projects.apache.org/site/json/projects/santuario.json
    comdev/projects.apache.org/site/json/projects/shale.json
    comdev/projects.apache.org/site/json/projects/shindig.json
    comdev/projects.apache.org/site/json/projects/shiro.json
    comdev/projects.apache.org/site/json/projects/sis.json
    comdev/projects.apache.org/site/json/projects/spamassassin.json
    comdev/projects.apache.org/site/json/projects/spark.json
    comdev/projects.apache.org/site/json/projects/sqoop.json
    comdev/projects.apache.org/site/json/projects/stanbol.json
    comdev/projects.apache.org/site/json/projects/steve.json
    comdev/projects.apache.org/site/json/projects/storm.json
    comdev/projects.apache.org/site/json/projects/stratos.json
    comdev/projects.apache.org/site/json/projects/struts.json
    comdev/projects.apache.org/site/json/projects/subversion.json
    comdev/projects.apache.org/site/json/projects/synapse.json
    comdev/projects.apache.org/site/json/projects/syncope.json
    comdev/projects.apache.org/site/json/projects/tajo.json
    comdev/projects.apache.org/site/json/projects/tapestry.json
    comdev/projects.apache.org/site/json/projects/taverna.json
    comdev/projects.apache.org/site/json/projects/tcl-rivet.json
    comdev/projects.apache.org/site/json/projects/tcl-websh.json
    comdev/projects.apache.org/site/json/projects/tez.json
    comdev/projects.apache.org/site/json/projects/thrift.json
    comdev/projects.apache.org/site/json/projects/tika.json
    comdev/projects.apache.org/site/json/projects/tiles.json
    comdev/projects.apache.org/site/json/projects/tomcat-reusable-dialog-components-(rdc)-taglib.json
    comdev/projects.apache.org/site/json/projects/tomee.json
    comdev/projects.apache.org/site/json/projects/turbine.json
    comdev/projects.apache.org/site/json/projects/tuscany.json
    comdev/projects.apache.org/site/json/projects/vcl.json
    comdev/projects.apache.org/site/json/projects/velocity-anakia.json
    comdev/projects.apache.org/site/json/projects/velocity-texen.json
    comdev/projects.apache.org/site/json/projects/velocity-velocity-dvsl.json
    comdev/projects.apache.org/site/json/projects/velocity-velocity-tools.json
    comdev/projects.apache.org/site/json/projects/velocity.json
    comdev/projects.apache.org/site/json/projects/vxquery.json
    comdev/projects.apache.org/site/json/projects/whirr.json
    comdev/projects.apache.org/site/json/projects/wicket.json
    comdev/projects.apache.org/site/json/projects/wink.json
    comdev/projects.apache.org/site/json/projects/wookie.json
    comdev/projects.apache.org/site/json/projects/ws-axiom.json
    comdev/projects.apache.org/site/json/projects/ws-woden.json
    comdev/projects.apache.org/site/json/projects/xalan-xalan-for-java-xslt-processor.json
    comdev/projects.apache.org/site/json/projects/xalan.json
    comdev/projects.apache.org/site/json/projects/xerces-xerces-for-java-xml-parser.json
    comdev/projects.apache.org/site/json/projects/xerces-xerces-for-perl-xml-parser.json
    comdev/projects.apache.org/site/json/projects/xerces-xml-commons-external.json
    comdev/projects.apache.org/site/json/projects/xerces-xml-commons-resolver.json
    comdev/projects.apache.org/site/json/projects/xerces.json
    comdev/projects.apache.org/site/json/projects/xml-xindice.json
    comdev/projects.apache.org/site/json/projects/xmlbeans.json
    comdev/projects.apache.org/site/json/projects/xmlgraphics-batik.json
    comdev/projects.apache.org/site/json/projects/xmlgraphics-fop.json
    comdev/projects.apache.org/site/json/projects/xmlgraphics-xml-graphics-commons.json
    comdev/projects.apache.org/site/json/projects/zookeeper.json

Modified: comdev/projects.apache.org/scripts/import/rdfparse.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/import/rdfparse.py?rev=1679364&r1=1679363&r2=1679364&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/import/rdfparse.py (original)
+++ comdev/projects.apache.org/scripts/import/rdfparse.py Thu May 14 13:27:55 2015
@@ -66,6 +66,9 @@ for s in itemlist :
             pjson['pmc'] = m.group(1)
         if re.search(r"/[a-z0-9+A-Z]+/?$", pjson['homepage']) or os.path.isfile("../site/json/projects/%s.json"
% prname):
             prname = "%s-%s" % (prname, nn)
+        # replace category url with id, by removing http://projects.apache.org/category/
+        if pjson['category']:
+            pjson['category'] = pjson['category'].replace("http://projects.apache.org/category/",
"")
         if prname:
             add = {}
             for k in pjson:



Mime
View raw message