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

Query the full graph as subgraph #315

Open
FcarrilloBre17 opened this issue Jun 27, 2023 · 1 comment
Open

Query the full graph as subgraph #315

FcarrilloBre17 opened this issue Jun 27, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@FcarrilloBre17
Copy link

I'm currently using part of your code to find communities in a kg, but with a subgraph from a query I don't retrieve all data that I want.

I want to use all the graph, using the query
query_ttl = """
prefix dct:http://purl.org/dc/terms/
SELECT ?subject ?p ?object
WHERE {
?subject ?p ?object.
}
"""
and the subgraph is fine, but when I want to build the ig_graph, there is an error, which is:
InternalError: Error at src/graph/type_indexededgelist.c:261: Out-of-range vertex IDs when adding edges. -- Invalid vertex ID

Can somebody help me?
Thanks

@csaparna
Copy link

I did encounter the same error while trying to use an rdf file in ttl format to read in as ig_graph. However, It was successful in creating a networkx graph. I used a similar query as above:

query = """
SELECT ?subject ?object
WHERE {
    ?subject ?p ?object .
}
"""

to query for the entire graph.

@ceteri ceteri self-assigned this Aug 8, 2023
@ceteri ceteri added the bug Something isn't working label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants