Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help to use the Tutorial #78

Closed
ofilangi opened this issue Mar 18, 2020 · 7 comments
Closed

Help to use the Tutorial #78

ofilangi opened this issue Mar 18, 2020 · 7 comments

Comments

@ofilangi
Copy link

I tried to follow the tutorial
with e simple config file :

{   
    "baseConfig": "trifid:config-sparql.json", 
    "sparqlEndpointUrl": "http://dbpedia.org/sparql",
}   

and the command

docker run -ti -e TRIFID_CONFIG=config-custom.json -v $(pwd)/config-custom.json:/usr/src/app/config-custom.json -p 8080:8080 zazuko/trifid

The mail page (http://localhost:8080/) have no information/links to browse the Dbpedia SPARQL endpoint...

image

> [email protected] start /app
> node server.js

::ffff:172.17.0.1 - - [18/Mar/2020:14:49:53 +0000] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36"
::ffff:172.17.0.1 - - [18/Mar/2020:14:49:53 +0000] "GET /favicon.ico HTTP/1.1" 200 - "http://localhost:8080/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36"

How can I have an access to the YASGUI or an Dbpedia entity start point ?

@ktk
Copy link
Member

ktk commented Mar 18, 2020

I will have to update this documentation, but did you try /sparql on localhost?

regards

Adrian

@ofilangi
Copy link
Author

I did a test with this docker-compose yml file (I used your docker image in this test zazuko/trifid)

version: '3'
services:
    virtuoso:
      image: tenforce/virtuoso
      environment:
          DBA_PASSWORD: "test"
          SPARQL_UPDATE: "false"
          DEFAULT_GRAPH: "http://www.tesgraph.org#"
      ports:
          - 8890:8890
    
    trifid:
      image:  zazuko/trifid
      volumes:
        - ./config-custom.json:/usr/src/app/config-custom.json
      environment:
        - TRIFID_CONFIG=config-custom.json
      ports:
        - 8080:8080

config-custome.json

{
    "baseConfig": "trifid:config-sparql.json", 
    "sparqlEndpointUrl": "http://virtuoso:8890/sparql"
}

I loaded a simple turtle file on my localhost (http://localhost:8890) the file

I see this simple page when I'm go on http://localhost:8080/
image

Did i forget to configure something ?

@ktk
Copy link
Member

ktk commented Mar 31, 2020

Sorry for not getting back to you earlier! No the default-config does indeed not ship much on the main entry page right now. We have a few issues open about how we could change that, see for example #59 and the project board we did https://github.com/zazuko/trifid/projects/2

Usually we customize the main page for what the customer wants to have.

But other than that, did it do what you expected, as in can you dereference data & do you have a SPARQL frontend?

@sandhose
Copy link
Contributor

The TRIFID_CONFIG environment variable in the Dockerfile wasn't working since a few releases. This is now fixed in version 2.3.5, available on the Docker Hub.

Please note that the path of the config has changed, see the updated tutorial.

@ofilangi
Copy link
Author

Sorry for my late reply ... I was finally able to test the new docker image again! dereference link works well. by taking the configuration described at the start of this post and loading the following ttl file

@prefix txn: <http://localhost:8080/data/transaction/> .
@prefix srv: <http://localhost:8080/data/server/> .
@prefix log: <http://localhost:8080/ont/transaction-log/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

txn:123 a log:Transaction ;
	log:processedBy srv:A ;
	log:processedAt "2015-10-16T10:22:23"^^xsd:dateTime ;
	log:statusCode 200 .
	
txn:124 a log:Transaction ;
	log:processedBy srv:B ;
	log:processedAt "2015-10-16T10:22:24"^^xsd:dateTime ;
	log:statusCode 200 .

txn:125 a log:Transaction ;
	log:processedBy srv:C ;
	log:processedAt "2015-10-16T10:22:24"^^xsd:dateTime ;
	log:statusCode 200 .

The link http://localhost:8080/data/transaction/123 get the folowwing page

image

thanks !

@ktk
Copy link
Member

ktk commented Sep 30, 2020

Great thanks for the update. I assume we can close this then?

@ofilangi
Copy link
Author

yes!

@ktk ktk closed this as completed Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants