read-write-web / rww-play

read write web Play
59 stars 19 forks source link

Add reader and writer for application/n-triples . #135

Closed reederz closed 9 years ago

reederz commented 9 years ago

We can now ask for application/n-triples from the CORS proxy:

curl -i --insecure  -H "Accept: application/n-triples" 'https://localhost:8443/srv/cors?url=http%3A%2F%2Flocalhost%3A8080%2Freederz.nt'
HTTP/1.1 200 OK
Accept: application/n-triples
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/n-triples
Host: localhost:8443
User-Agent: curl/7.40.0
Content-Length: 2364

<http://localhost:8080/reederz.nt#me> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://localhost:8080/reederz.nt#me> <http://xmlns.com/foaf/0.1/name> "Justas Azna"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://localhost:8080/reederz.nt#me> <http://xmlns.com/foaf/0.1/name> "Handsome Hacker"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://localhost:8080/reederz.nt#me> <http://xmlns.com/foaf/0.1/img> <https://avatars3.githubusercontent.com/u/3193560?v=3&s=460> .
<http://localhost:8080/reederz.nt#me> <http://xmlns.com/foaf/0.1/depiction> <https://avatars3.githubusercontent.com/u/3193560?v=3&s=460> .
<http://localhost:8080/reederz.nt#me> <http://purl.org/net/pingback/to> <https://my-profile.eu/pingback.php> .
_:nod19e9ck1osx1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/auth/cert#RSAPublicKey> .
_:nod19e9ck1osx1 <http://www.w3.org/ns/auth/cert#modulus> "D3A7E935705B80C8CF7988D922EFF17B76CF8D12F14645BA39A2381A272EC5A4A10397B66FC7A2869DB40E971CAC98A2DB6467818371ABF785B4C88170EEB15F392863A6492EEDAD2D5E3B758F1E679961C69A57E17F69B4CFD7C0762906B0F407810CEBCC9A5C1562169CF0522612C690F7F7F5BBB9D527E33F22AE36D04E141D6793323378CEA7165A7ADD79E97EAC391C3688B28FB63A17FE743DF6D762AF8C5863A24592249FE60D371D03133F791876DC68B657171975E047587A684C548BBE0374DDD0462CB9C340EDC1461B991363077875BDE6E6BE2991307FDF355EFFA9A151415EC1E994F09B13AF1E5320FB121427E9261A4A809981443A6FD929"^^<http://www.w3.org/2001/XMLSchema#hexBinary> .
_:nod19e9ck1osx1 <http://www.w3.org/ns/auth/cert#exponent> "65537"^^<http://www.w3.org/2001/XMLSchema#int> .
<http://localhost:8080/reederz.nt#me> <http://www.w3.org/ns/auth/cert#key> _:node19e9ck1osx1 .
<http://localhost:8080/reederz.nt#me> <http://xmlns.com/foaf/0.1/knows> <http://bblfish.net/people/henry/card#me> .
<http://localhost:8080/reederz.nt> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/PersonalProfileDocument> .
<http://localhost:8080/reederz.nt> <http://xmlns.com/foaf/0.1/maker> <https://my-profile.eu/people/reederz/card#me> .
<http://localhost:8080/reederz.nt> <http://xmlns.com/foaf/0.1/primaryTopic> <https://my-profile.eu/people/reederz/card#me> .
<http://localhost:8080/reederz.nt> <http://xmlns.com/foaf/0.1/title> "Justas Azna's profile."^^<http://www.w3.org/2001/XMLSchema#string> .
bblfish commented 9 years ago

great. thanks. We do need to get the test suites running again, so that travis can test our changes.

reederz commented 9 years ago

I'll see if it's something up my alley..