freme-project / e-Link

Apache License 2.0
0 stars 0 forks source link

Re-uploading the templates to the MySQl database #45

Closed ArneBinder closed 8 years ago

ArneBinder commented 8 years ago

Who should be the owner of the existing seven templates? Perhaps, @m1ci do you want to create an user via the documentation-page, then authenticate yourself via curl (this will return a json object containing a token) and re-upload the templates (also via curl, use the token as header parameter "X-Auth-Token")?

Or we wait for this issue and do it via the documentation page, but this could need some time.

Or I will create a dummy user and do this via curl. Then we would switch the owner later. In this case, please reassign to me.

m1ci commented 8 years ago

Or I will create a dummy user and do this via curl. Then we would switch the owner later. In this case, please reassign to me.

Yes, will you be so kind and do that? Thanks!

Also, can you please upload also the template with ID 300. Unfortunately, it is not available at the moment http://api-dev.freme-project.eu/current/e-link/templates/300?outformat=json but it was available with the previous document based storage.

ArneBinder commented 8 years ago

Ok, i will check this.

ArneBinder commented 8 years ago

I'v just taken a look to the templates in the last documentation version. There are more then the seven, which are documented at the doc page. Which of them should I integrate into the new db? Unfortunately I could not find one with ID 300. @m1ci do you have it anywhere else? otherwise I had to go back to an earlier commit manually and refetch them via broker calls...

m1ci commented 8 years ago

it was (should be) in templates.ttl file - let me check if I can find at the the dev server

ArneBinder commented 8 years ago

Sorry for bothering again, but I checked several previous commit states and could not find template 300. When did you added this one?

m1ci commented 8 years ago

On Sep 15th and later, the template was there - at the api-dev.

m1ci commented 8 years ago

I found it at the api-dev

<http://www.freme-project.eu/data/templates/300>
        a                    freme:Template ;
        rdfs:label           "DBpedia Categories" ;
        dcterms:description  "DBpedia Categories" ;
        freme:endpoint       "http://rv2622.1blu.de:8890/sparql/" ;
        freme:query          "CONSTRUCT {  <@@@entity_uri@@@> <http://purl.org/dc/terms/subject> ?category .  ?category <http://freme-project.eu/ns#info> ?info .  ?category <http://www.w3.org/2000/01/rdf-schema#label> ?label } WHERE { <@@@entity_uri@@@> <http://purl.org/dc/terms/subject> ?category .  ?category <http://freme-project.eu/ns#info> ?info . ?category <http://www.w3.org/2000/01/rdf-schema#label> ?label }" ;
        freme:templateId     "300" .
ArneBinder commented 8 years ago

thx, it is online again, the others also.