You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by og...@apache.org on 2012/05/07 15:23:34 UTC
svn commit: r1335011 - in /incubator/stanbol/trunk/enhancer/topic-web:
src/main/java/org/apache/stanbol/enhancer/web/topic/resource/TopicModelResource.java
tools/dbpediacategories.py
Author: ogrisel
Date: Mon May 7 13:23:33 2012
New Revision: 1335011
URL: http://svn.apache.org/viewvc?rev=1335011&view=rev
Log:
STANBOL-197: use lowercase query parameters
Modified:
incubator/stanbol/trunk/enhancer/topic-web/src/main/java/org/apache/stanbol/enhancer/web/topic/resource/TopicModelResource.java
incubator/stanbol/trunk/enhancer/topic-web/tools/dbpediacategories.py
Modified: incubator/stanbol/trunk/enhancer/topic-web/src/main/java/org/apache/stanbol/enhancer/web/topic/resource/TopicModelResource.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/topic-web/src/main/java/org/apache/stanbol/enhancer/web/topic/resource/TopicModelResource.java?rev=1335011&r1=1335010&r2=1335011&view=diff
==============================================================================
--- incubator/stanbol/trunk/enhancer/topic-web/src/main/java/org/apache/stanbol/enhancer/web/topic/resource/TopicModelResource.java (original)
+++ incubator/stanbol/trunk/enhancer/topic-web/src/main/java/org/apache/stanbol/enhancer/web/topic/resource/TopicModelResource.java Mon May 7 13:23:33 2012
@@ -109,7 +109,7 @@ public final class TopicModelResource ex
@Path("concept")
@Consumes(MediaType.WILDCARD)
public Response addConcept(@QueryParam(value = "id") String concept,
- @QueryParam(value = "primaryTopic") String primaryTopicUri,
+ @QueryParam(value = "primary_topic") String primaryTopicUri,
@QueryParam(value = "broader") List<String> broaderConcepts,
@Context HttpHeaders headers) throws ClassifierException {
classifier.addConcept(concept, primaryTopicUri, broaderConcepts);
Modified: incubator/stanbol/trunk/enhancer/topic-web/tools/dbpediacategories.py
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/topic-web/tools/dbpediacategories.py?rev=1335011&r1=1335010&r2=1335011&view=diff
==============================================================================
--- incubator/stanbol/trunk/enhancer/topic-web/tools/dbpediacategories.py (original)
+++ incubator/stanbol/trunk/enhancer/topic-web/tools/dbpediacategories.py Mon May 7 13:23:33 2012
@@ -41,7 +41,7 @@ def load_topics_from_tsv(filename, serve
broader_concepts = [DBPEDIA_URL_PREFIX + b.strip()
for b in broader_concepts.split()]
- url = server_url + "?id=%s&primaryTopic=%s" % (
+ url = server_url + "?id=%s&primary_topic=%s" % (
concept, primary_topic)
for broader_concept in broader_concepts: