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

Pb with GraphDB #57

Open
lolostar opened this issue Oct 2, 2018 · 18 comments
Open

Pb with GraphDB #57

lolostar opened this issue Oct 2, 2018 · 18 comments
Labels

Comments

@lolostar
Copy link

lolostar commented Oct 2, 2018

Hi,

I try to configure ld-r but although I indicate graphDB in my config file, I still have ClioPatria in my ldr repository (graphDB) ... I think I got rid of all mention of ClioPatria in the config files.

capture d ecran 2018-10-02 a 15 16 24

Specifications

  • Version: last
  • Platform: OS X
  • Subsystem:

Thank you

@lolostar
Copy link
Author

lolostar commented Oct 2, 2018

I try to attach the server.js file

@ali1k ali1k added the question label Oct 2, 2018
@lolostar
Copy link
Author

lolostar commented Oct 2, 2018

@ali1k
Copy link
Owner

ali1k commented Oct 2, 2018

I think the issue is that for dynamic datasets, the LD-R always used ClioPatria as default triple store and then you need to go to the configurations and change the endpointType.
I made a minor change in code where the generic endpointType will be used for dynamic datasets. Maybe you want to try that.
p.s. I think you need to use 'username' instead of 'user' in your server.js configs.

@lolostar
Copy link
Author

lolostar commented Oct 2, 2018

capture d ecran 2018-10-02 a 16 56 03

no more ClioPatria but I still have this kind of message when I try to connect

capture d ecran 2018-10-02 a 16 58 54

@ali1k
Copy link
Owner

ali1k commented Oct 2, 2018

I don't see any config about the username, password here. You should edit this in your server config (click on the configurations icon).
You should know the difference between static and dynamic configs in LD-R. When you try to connect to a new dataset, all your local static config in server.js is ignored. For static one, you should change the configs manually in reactor.js

@lolostar
Copy link
Author

lolostar commented Oct 2, 2018

When I click on the config icon I get this
capture d ecran 2018-10-02 a 17 06 40

@ali1k
Copy link
Owner

ali1k commented Oct 2, 2018

this means you cannot connect to the SPARQL endpoint that hosts your configurations! check your config for 'http://ld-r.org/configurations': { in your server.js file. And use username instead of user

@lolostar
Copy link
Author

lolostar commented Oct 3, 2018

Yes , but since the ldr base has been populated when the process started, that means that the program accesses and writes into the base in some way non ?
I changed user to username too

@ali1k
Copy link
Owner

ali1k commented Oct 3, 2018

Not necessarily as LD-R is just a UI on top of a SPARQL endpoint. If the connection is not established, the UI can still run but with error messages. And the configurations for datasets and configs are separate. You might be able to see some datasets but cannot write any configurations.
I you share you code with me, I can have a look.

@lolostar
Copy link
Author

lolostar commented Oct 3, 2018

@ali1k
Copy link
Owner

ali1k commented Oct 3, 2018

I checked the code. If you remove the graphName and the trailing slashes, it should work fine:

        'generic': {
            host: 'localhost', port: 7200, path: '/repositories/ldr' , endpointType: 'graphdb', 
            username: '***', password: '***'
        },

        'http://ld-r.org/configurations': {
            host: 'localhost', port: 7200, path: '/repositories/ldr' , endpointType: 'graphdb',
            username: '***', password: '*****'
        },

ali1k added a commit that referenced this issue Oct 3, 2018
@lolostar
Copy link
Author

lolostar commented Oct 3, 2018

I get that on the command line

uri: '**http://example.com**:7200/repositories/enedis

instead of

uri: 'localhost:7200/repositories/enedis

while the content of the base is

capture d ecran 2018-10-03 a 14 22 21

@ali1k
Copy link
Owner

ali1k commented Oct 3, 2018

no clue what to do! I checked your files with my local GraphDB and everything worked well with the above changes!

@lolostar
Copy link
Author

lolostar commented Oct 3, 2018

It looks like localhost or '127.0.0.1' is ignored (static or dynamic)

@ali1k
Copy link
Owner

ali1k commented Oct 3, 2018

localhost is ignored for all dynamic configs as it might cause a security breach!

@lolostar
Copy link
Author

lolostar commented Oct 3, 2018

That's annoying ;)

@ali1k
Copy link
Owner

ali1k commented Oct 4, 2018

if you really want to have it enabled, you can just remove that restriction in your fork.

@lolostar
Copy link
Author

lolostar commented Oct 5, 2018

Yes, I'll do it .

Thanks Ali

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

2 participants