diff --git a/beatles.rdf b/beatles.rdf new file mode 100644 index 0000000000000000000000000000000000000000..bcda16f81c402d9b201ffce9ae91e76703f2aa49 --- /dev/null +++ b/beatles.rdf @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<rdf:RDF + xmlns:dcterms="http://purl.org/dc/terms/" + xmlns:foaf="http://xmlns.com/foaf/0.1/" + xmlns:mo="http://musicontology.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:rel="http://relation/" + xmlns="http://localhost/lodspeakr/lodspeakr/"> + <foaf:Person rdf:about="http://localhost/lodspeakr/lodspeakr/george"> + <rel:collaboratesAt rdf:resource="http://localhost/lodspeakr/lodspeakr/the_beatles"/> + <foaf:firstName>George</foaf:firstName> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/john"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/paul"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/ringo"/> + <foaf:lastName>Harrison</foaf:lastName> + </foaf:Person> + <foaf:Person rdf:about="http://localhost/lodspeakr/lodspeakr/john"> + <rel:collaboratesAt rdf:resource="http://localhost/lodspeakr/lodspeakr/the_beatles"/> + <foaf:firstName>John</foaf:firstName> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/george"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/paul"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/ringo"/> + <foaf:lastName>Lennon</foaf:lastName> + </foaf:Person> + <foaf:Person rdf:about="http://localhost/lodspeakr/lodspeakr/paul"> + <rel:collaboratesAt rdf:resource="http://localhost/lodspeakr/lodspeakr/the_beatles"/> + <foaf:firstName>Paul</foaf:firstName> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/george"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/john"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/ringo"/> + <foaf:lastName>McCartney</foaf:lastName> + </foaf:Person> + <foaf:Person rdf:about="http://localhost/lodspeakr/lodspeakr/ringo"> + <rel:collaboratesAt rdf:resource="http://localhost/lodspeakr/lodspeakr/the_beatles"/> + <foaf:firstName>Ringo</foaf:firstName> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/george"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/john"/> + <foaf:knows rdf:resource="http://localhost/lodspeakr/lodspeakr/paul"/> + <foaf:lastName>Starr</foaf:lastName> + </foaf:Person> + <mo:Group rdf:about="http://localhost/lodspeakr/lodspeakr/the_beatles"> + <dcterms:title>The Beatles</dcterms:title> + </mo:Group> +</rdf:RDF> diff --git a/beatles.ttl b/beatles.ttl new file mode 100644 index 0000000000000000000000000000000000000000..1f83896e4a51589b8cf6f4976e5453141e6ca518 --- /dev/null +++ b/beatles.ttl @@ -0,0 +1,33 @@ +@prefix : <http://localhost/lodspeakr/lodspeakr/> . +@prefix foaf: <http://xmlns.com/foaf/0.1/> . +@prefix mo: <http://musicontology.org/ns#> . +@prefix dcterms: <http://purl.org/dc/terms/> . +@prefix rel: <http://relation/> . + +:john a foaf:Person; + rel:collaboratesAt :the_beatles; + foaf:knows :paul, :ringo, :george ; + foaf:firstName "John"; + foaf:lastName "Lennon". + + +:paul a foaf:Person; + rel:collaboratesAt :the_beatles; + foaf:knows :john, :ringo, :george ; + foaf:firstName "Paul"; + foaf:lastName "McCartney" . + +:ringo a foaf:Person; + rel:collaboratesAt :the_beatles; + foaf:knows :john, :paul, :george ; + foaf:firstName "Ringo"; + foaf:lastName "Starr" . +:george a foaf:Person; + rel:collaboratesAt :the_beatles; + foaf:knows :john, :ringo, :paul ; + foaf:firstName "George"; + foaf:lastName "Harrison" . + +:the_beatles a mo:Group ; + dcterms:title "The Beatles". + diff --git a/views/default.view.html b/views/default.view.html index 5b608679140a0c48a86370adb0b01a4e8672e331..9ded4e60f9df1e8fcc03fb640183ce053cc99204 100644 --- a/views/default.view.html +++ b/views/default.view.html @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> - <html {% for i, ns in base.ns %}xmlns:{{i}}="{{ns}}" + <html xmlns="http://www.w3.org/1999/xhtml" {% for i, ns in base.ns %}xmlns:{{i}}="{{ns}}" {%endfor%}version="XHTML+RDFa 1.0" xml:lang="en"> <head> <title>Page about {{base.value.this}}</title> @@ -9,8 +9,6 @@ </head> <body> <h1>Page about <a href='{{base.value.this}}'>{{base.curie.this}}</a></h1> - <br/> - <br/> <div> <h2>Information from {{base.curie.this}}</h2> <table about="{{base.value.this}}">