[deepamehta-devel] "URL" as Identifier - Index Mode KEY
Malte Reißig
mre at deepamehta.de
Sa Aug 13 04:26:24 CEST 2011
hey dear jiri, good morning old devel-list!
i have an issue with querying a dm4-server for existing URL-Topics via a
GET Request and it suddenly struck me that the URL's TopicType
Definition may not have yet set it's index_mode like needed
(~"dm4.core.key") to enable such a query for an existing topic -
So, if a TopicType can have several index_modes (please correct me if i
am wrong with this) i would be happy if you could add the "dm4.core.key"
index_mode_uri for the upcoming release to your current
URL-TopicType-Definition - I also appended an examplary query, justin
case my request is constructed badly.
Thanks for your help!
Cheers,
Malte
### Example Query
In a "getTopicByTypeAndValue(uri, value)" i construct the following GET
Request for the discussed URL but despite i do have the following URL
already bookmarked there is no topic returned as a response to my query.
curl
"http://localhost:8080/core/topic/dm4.webbrowser.url/value/https%3A%2%2Fgithub.com%2Fjri%2Fdeepamehta%2Fblob%2Fmaster%2Fdeepamehta-webbrowser%2Fsrc%2Fmain%2Fresources%2Fmigrations%2Fmigration1.json"
curl
"http://localhost:8080/core/topic/dm4.webbrowser.url/value/https%3A%2F%2Fgithub.com%2Fjri%2Fdeepamehta%2Fblob%2Fmaster%2Fdeepamehta-webbrowser%2Fsrc%2Fmain%2Fresources%2Fmigrations%2Fmigration1.json"
see also:
https://github.com/jri/deepamehta/blob/master/deepamehta-webbrowser/src/main/resources/migrations/migration1.json
Mehr Informationen über die Mailingliste devel