Skip to content

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

@ALGEIFY

Description

@ALGEIFY

❓ 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions