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

how to setup a local fuseki server ? #147

Open
scenaristeur opened this issue Dec 24, 2021 · 5 comments
Open

how to setup a local fuseki server ? #147

scenaristeur opened this issue Dec 24, 2021 · 5 comments
Labels

Comments

@scenaristeur
Copy link

i've tried to setup a fuseki local server with

{
  "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/server/^3.0.0/components/context.jsonld",
  "@id": "urn:ldf-server:my",
  "import": "preset-qpf:config-defaults.json",

  "title": "My Linked Data Fragments server",

  "datasources": [
    {
      "@id": "ex:mySparqlLocal",
      "@type": "SparqlDatasource",
      "datasourceTitle": "Fuseki Local",
      "description": "Fuseki Local",
      "datasourcePath": "fuseki-local-sparql",
      "sparqlEndpoint": "http://localhost:3030/pizza/sparql"
    },
    {
      "@id": "ex:mySparqlDatasource",
      "@type": "SparqlDatasource",
      "datasourceTitle": "DBpedia (Virtuoso)",
      "description": "DBpedia with a Virtuoso back-end",
      "datasourcePath": "dbpedia-sparql",
      "sparqlEndpoint": "https://dbpedia.org/sparql"
    }
  ]
}

with a pizza dataset imported from pizza.ttl

image

but i got no matches on ldf- server

image

@rubensworks
Copy link
Member

Not sure why that wouldn't work.

Can you query http://localhost:3030/pizza/sparql with other tools?

Do you see any error messages in the LDF server logs?

Do you see any incoming requests in Fuseki?

@scenaristeur
Copy link
Author

@scenaristeur
Copy link
Author

there is something wrong with the "ex": preefix, i thing

smag@smagthink:~/dev/neurones/server$ ldf-server config_fuseki_only.json 5000 4
2022-01-04T16:00:32.811Z [Components.js] warn: Detected potentially invalid IRI 'ex:mySparqlLocal' in config_fuseki_only.json
2022-01-04T16:00:32.812Z [Components.js] warn: Detected potentially invalid IRI 'ex:mySparqlLocal' in config_fuseki_only.json
2022-01-04T16:00:32.813Z [Components.js] warn: Detected potentially invalid IRI 'ex:mySparqlLocal' in config_fuseki_only.json
2022-01-04T16:00:32.813Z [Components.js] warn: Detected potentially invalid IRI 'ex:mySparqlLocal' in config_fuseki_only.json
2022-01-04T16:00:32.813Z [Components.js] warn: Detected potentially invalid IRI 'ex:mySparqlLocal' in config_fuseki_only.json
2022-01-04T16:00:32.813Z [Components.js] warn: Detected potentially invalid IRI 'ex:mySparqlLocal' in config_fuseki_only.json
Master 75432 running.

removing it give me no more error

{
  "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/server/^3.0.0/components/context.jsonld",
  "@id": "urn:ldf-server:my",
  "import": "preset-qpf:config-defaults.json",

  "title": "Fuseki only",

  "datasources": [
    {
      "@id": "mySparqlLocal",
      "@type": "SparqlDatasource",
      "datasourceTitle": "Fuseki Local",
      "description": "Fuseki Local",
      "datasourcePath": "fuseki-local-sparql",
      "sparqlEndpoint": "http://localhost:3030/pizza/sparql"
    }
  ]
}

but even no matches

Matches in Fuseki Local for { ?s ?p ?o ?g. }

Fuseki Local has no matches for this pattern.

@rubensworks
Copy link
Member

And what about Fuseki's logs?

@Skriptotajs
Copy link

I had the same issue. The query generated by LDF was for quads and returned empty results:
SELECT * WHERE {GRAPH ?g{?s ?p ?o}} LIMIT 100

I fixed it by settings quads to false in the config:

{
  "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/server/^3.0.0/components/context.jsonld",
  "@id": "urn:ldf-server:my",
  "import": "preset-qpf:config-defaults.json",

  "title": "Fuseki only",

  "datasources": [
    {
      "@id": "mySparqlLocal",
      "@type": "SparqlDatasource",
      "datasourceTitle": "Fuseki Local",
      "description": "Fuseki Local",
      "datasourcePath": "fuseki-local-sparql",
      "sparqlEndpoint": "http://localhost:3030/pizza/sparql",
      "quads": false
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants