This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # triples for a given entity | |
| curl -H "Accept: text/turtle" -X GET "https://graph.facebook.com/aldo.bucchi" | |
| # with metadata ( triples for properties / schema ) | |
| curl -H "Accept: text/turtle" -X GET "https://graph.facebook.com/aldo.bucchi?metadata=1" | |
| # of course you can pass an access token to gain access to a broader piece of the graph | |
| curl -H "Accept: text/turtle" -X GET "https://graph.facebook.com/aldo.bucchi&access_token=TOKEN" | |
| # to get a fresh ( but short lived ) token browse to: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object rdfStringOps { | |
| import org.openrdf.model._ | |
| private lazy val vf = impl.ValueFactoryImpl.getInstance | |
| implicit class RDFStringOps( val str:String ){ | |
| def uri = vf createURI str | |
| def lit = vf createLiteral str |
NewerOlder