dice-group / gerbil

GERBIL - General Entity annotatoR Benchmark
GNU Affero General Public License v3.0
222 stars 58 forks source link

SpotWrapNifWS4Test curlExample.sh example issue #243

Closed alexanderpanchenko closed 6 years ago

alexanderpanchenko commented 6 years ago

test application url requires a fix as described below: https://github.com/dice-group/gerbil/blob/SpotWrapNifWS4Test/curlExample.sh

does not work

panchenko@ltheadnode:~/tmp/gerbil$ curl -d "@example.ttl" -H "Content-Type: application/x-turtle" http://localhost:8080/gerbil-spotWrapNifWS4Test/spotlight
<html>
<head>
   <title>Status page</title>
</head>
<body style="font-family: sans-serif;">
<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Not Found</p>
<p>The server has not found anything matching the request URI</p>
<p>You can get technical details <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>

it works

panchenko@ltheadnode:~/tmp/gerbil$ curl -d "@example.ttl" -H "Content-Type: application/x-turtle" http://localhost:8080/spotlight
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .
@prefix nif:   <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .

<http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=132,138>
        a                     nif:RFC5147String , nif:String ;
        nif:anchorOf          "botany"^^xsd:string ;
        nif:beginIndex        "132"^^xsd:nonNegativeInteger ;
        nif:endIndex          "138"^^xsd:nonNegativeInteger ;
        nif:referenceContext  <http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=0,146> ;
        itsrdf:taClassRef     <> ;
        itsrdf:taIdentRef     <http://dbpedia.org/resource/Botany> .

<http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=61,68>
        a                     nif:RFC5147String , nif:String ;
        nif:anchorOf          "Douglas"^^xsd:string ;
        nif:beginIndex        "61"^^xsd:nonNegativeInteger ;
        nif:endIndex          "68"^^xsd:nonNegativeInteger ;
        nif:referenceContext  <http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=0,146> ;
        itsrdf:taClassRef     <Schema:Organization> , <http://dbpedia.org/ontology/Organisation> , <http://dbpedia.org/ontology/Agent> , <DUL:Agent> , <Wikidata:Q43229> , <http://dbpedia.org/ontology/Company> , <Wikidata:Q24229398> , <DUL:SocialPerson> ;
        itsrdf:taIdentRef     <http://dbpedia.org/resource/Douglas_Aircraft_Company> .

<http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=0,20>
        a                     nif:RFC5147String , nif:String ;
        nif:anchorOf          "Florence May Harding"^^xsd:string ;
        nif:beginIndex        "0"^^xsd:nonNegativeInteger ;
        nif:endIndex          "20"^^xsd:nonNegativeInteger ;
        nif:referenceContext  <http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=0,146> ;
        itsrdf:taClassRef     <> ;
        itsrdf:taIdentRef     <http://dbpedia.org/resource/Florence_May_Harding> .

<http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=0,146>
        a               nif:RFC5147String , nif:String , nif:Context ;
        nif:beginIndex  "0"^^xsd:nonNegativeInteger ;
        nif:endIndex    "146"^^xsd:nonNegativeInteger ;
        nif:isString    "Florence May Harding studied at a school in Sydney, and with Douglas Robert Dundas , but in effect had no formal training in either botany or art."^^xsd:string .

<http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=44,50>
        a                     nif:RFC5147String , nif:String ;
        nif:anchorOf          "Sydney"^^xsd:string ;
        nif:beginIndex        "44"^^xsd:nonNegativeInteger ;
        nif:endIndex          "50"^^xsd:nonNegativeInteger ;
        nif:referenceContext  <http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=0,146> ;
        itsrdf:taClassRef     <http://dbpedia.org/ontology/PopulatedPlace> , <Wikidata:Q515> , <http://dbpedia.org/ontology/Place> , <http://dbpedia.org/ontology/Settlement> , <http://dbpedia.org/ontology/Location> , <Schema:City> , <Schema:Place> , <Wikidata:Q486972> , <http://dbpedia.org/ontology/City> ;
        itsrdf:taIdentRef     <http://dbpedia.org/resource/Sydney> .

<http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=69,82>
        a                     nif:RFC5147String , nif:String ;
        nif:anchorOf          "Robert Dundas"^^xsd:string ;
        nif:beginIndex        "69"^^xsd:nonNegativeInteger ;
        nif:endIndex          "82"^^xsd:nonNegativeInteger ;
        nif:referenceContext  <http://www.ontologydesignpatterns.org/data/oke-challenge/task-1/sentence-1#char=0,146> ;
        itsrdf:taClassRef     <Wikidata:Q215627> , <DUL:NaturalPerson> , <Schema:Person> , <http://dbpedia.org/ontology/Agent> , <Http://xmlns.com/foaf/0.1/Person> , <Wikidata:Q24229398> , <http://dbpedia.org/ontology/OfficeHolder> , <Wikidata:Q5> , <http://dbpedia.org/ontology/Person> , <DUL:Agent> ;
        itsrdf:taIdentRef     <http://dbpedia.org/resource/Robert_Dundas_of_Arniston> .
MichaelRoeder commented 6 years ago

That is interesting. How do you started the example web service?

I think we used mvn clean tomcat:run which typically causes the maven artifact id to be put into the path of the service.

alexanderpanchenko commented 6 years ago

i started it using

docker-compose up -d
MichaelRoeder commented 6 years ago

I added an explanation to the README.md that shows the the two ways to build the project and test it (with and without docker).

alexanderpanchenko commented 6 years ago

Great. Thank you.

On Feb 27, 2018 10:19 AM, "Michael Röder" notifications@github.com wrote:

I added an explanation to the README.md https://github.com/dice-group/gerbil/blob/SpotWrapNifWS4Test/README.md that shows the the two ways to build the project and test it (with and without docker).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dice-group/gerbil/issues/243#issuecomment-368803411, or mute the thread https://github.com/notifications/unsubscribe-auth/ABY6vuPGRGFjU-mBryzUkJ4dgfsDlDlfks5tY8iagaJpZM4SSZiU .

alexanderpanchenko commented 6 years ago

here is just a small follow-up on this branch

on ubuntu 16.04 make command does not work with your Makefile (you need to replace spaces with tabs and then it works)

MichaelRoeder commented 6 years ago

You are right. Thanks for this hint.

alexanderpanchenko commented 6 years ago

you are welcome!