0

I'm trying to get all the triples (subject, predicate and object) associated with a certain entity/relation (subject/object or predicate) from Freebase. For example, given subject penguin I want to have all the triples associated with it (e.g (penguin, color, white)). Or given subject yellow, triples will be (sun, star, yellow). Same goes for a specific predicate.

I know that RDF triples are in the form of URIs, but my end goal is to have them as strings for easy usage.

It seems like this SO question had a somewhat similar question, but they were focusing on URI form and were using SPARQL instead of Python. This SO question was using Python but were using a SQL query on something specific like aliases. This SO answer mentioned that it's not possible to get the string literals for the triples, but then showed some ways to parse them (which was confusing).

Penguin
  • 1,256
  • 7
  • 30

0 Answers0