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

Facing a problem with the Literal definition from Endpoint! #170

Open
ALGEIFY opened this issue Jan 3, 2023 · 0 comments
Open

Facing a problem with the Literal definition from Endpoint! #170

ALGEIFY opened this issue Jan 3, 2023 · 0 comments
Labels
question Further information is requested

Comments

@ALGEIFY
Copy link

ALGEIFY commented Jan 3, 2023

❓ Question

I am trying to connect to the endpoint of the Graph Library
https://semopenalex.org/sparql
and trying to define the literals in this way:

knowledge=KG(
"https://semopenalex.org/sparql",
skip_predicates={"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"},
literals=[
[

        "http://purl.org/spar/cito/cites",
        "https://semopenalex.org/property/hasConcept",
        "https://semopenalex.org/property/hasRelatedWork",
        "http://www.w3.org/2004/02/skos/core#prefLabel",
        
       
    ],
    [
       
         "http://xmlns.com/foaf/0.1/name",
    
    ],
      [
       
        "http://www.w3.org/2004/02/skos/core#related",
        "http://www.w3.org/2004/02/skos/core#broader",
        "http://www.w3.org/2004/02/skos/core#Concept",
    ],
    [
        "http://www.w3.org/2004/02/skos/core#prefLabel",
    ],
],

)
I get the error either ( ...
We could not find that page. Please go back and try again.

: 0) or with knowledge=KG( "https://semopenalex.org/sparql", skip_predicates={"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}, literals=[ [
        "http://purl.org/spar/cito/cites",
        "https://semopenalex.org/property/hasConcept",
        "https://semopenalex.org/property/hasRelatedWork",
        "http://www.w3.org/2004/02/skos/core#prefLabel",
        
       
    ],
    [
       
         "http://xmlns.com/foaf/0.1/name",
    
    ],
      [
       
        "http://www.w3.org/2004/02/skos/core#related",
        "http://www.w3.org/2004/02/skos/core#broader",
        "http://www.w3.org/2004/02/skos/core#Concept",
    ],
    [
        "http://www.w3.org/2004/02/skos/core#prefLabel",
    ],
],

),
the error (AttributeError: 'tuple' object has no attribute 'skip_verify')

if you could help with that?

@ALGEIFY ALGEIFY added the question Further information is requested label Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant