Hi,

On 09/05/2012 08:00 PM, Maciek Sykulski wrote:
*3.* I cannot submit any *ldpath program* to contenthub. Any submit request
directed at POST:/contenthub/ldpath/program yields:

curl -i -X POST -d "name=universities&program= \
                     @prefix dbp-ont : ; \
                     city = dbp-ont:city / rdfs:label :: xsd:string; \
                     country = dbp-ont:country / rdfs:label :: xsd:string; \
                     president = dbp-ont:president / rdfs:label ::
xsd:string; \
                     numberOfStudent = dbp-ont:numberOfStudents :: xsd:int;"
                     "http://localhost:8080/contenthub/ldpath/program";
HTTP/1.1 500 Internal Server Error

Looks that the prefix declaration uses a wrong LDPath syntax, the namespace is missing. You'd need to use something like:

@prefix dbp-ont : <http://dbpedia.org/ontology/> ;

and it should work.

For further details, please check the path language specification:

http://code.google.com/p/ldpath/wiki/PathLanguage#Namespace_Definitions

Kind regards,

--
Sergio Fernández
Salzburg Research
+43 662 2288 318
Jakob-Haringer Strasse 5/II
A-5020 Salzburg (Austria)
http://www.salzburgresearch.at

Reply via email to