Commit 062e7a7a authored by Ian Dennis Miller's avatar Ian Dennis Miller

move schema

parent dc3a8132
......@@ -105,7 +105,7 @@ The following Turtle corresponds to `example/argument-1/article-1.ttl`, which is
```turtle
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#> .
@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#> .
<#article-1>
a thesis:article ;
......
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#> .
@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#> .
<#article-1>
a thesis:Article ;
......
......@@ -5,7 +5,7 @@
<!-- inspired by: https://www.w3.org/2001/Talks/0710-ep-grid/slide21-0.html -->
<!-- validator at: https://www.w3.org/RDF/Validator/ -->
<rdf:Description about="https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#">
<rdf:Description about="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#">
<rdfs:comment>A namespace for describing an Argument or Thesis</rdfs:comment>
<rdfs:comment>$Revision: 1.0 $ $Date: 2019/01/31 00:17:29 $</rdfs:comment>
<rdfs:seeAlso resource="https://projects.sisrlab.com/idm/visfact"/>
......@@ -14,13 +14,13 @@
<rdfs:Class ID="Article">
<rdfs:label xml:lang="en">Article</rdfs:label>
<rdfs:comment>An Article from which Claims may be drawn.</rdfs:comment>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#"/>
</rdfs:Class>
<rdfs:Class ID="Claim">
<rdfs:label xml:lang="en">Claim</rdfs:label>
<rdfs:comment>A claim, a quote of which is taken from an Article.</rdfs:comment>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#"/>
</rdfs:Class>
<rdf:Property ID="appearance">
......@@ -28,7 +28,7 @@
<rdfs:comment>Relates a Claim to the Article in which it appears.</rdfs:comment>
<rdfs:range rdf:resource="#Article"/>
<rdfs:domain rdf:resource="#Claim"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#"/>
</rdf:Property>
<rdf:Property ID="quote">
......@@ -36,7 +36,7 @@
<rdfs:comment>A quote that has been selected to represent the claim.</rdfs:comment>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-schema#Literal"/>
<rdfs:domain rdf:resource="#Claim"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#"/>
</rdf:Property>
<rdf:Property ID="source">
......@@ -44,7 +44,7 @@
<rdfs:comment>A source identified by the Article as justifying the Claim.</rdfs:comment>
<rdfs:range rdf:resource="#Article"/>
<rdfs:domain rdf:resource="#Claim"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#"/>
<rdfs:isDefinedBy resource="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#"/>
</rdf:Property>
</rdf:RDF>
......@@ -2,7 +2,7 @@
<content><![CDATA[
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#> .
@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#> .
<#${TM_FILENAME/.ttl//}>
a thesis:Article ;
......
......@@ -47,7 +47,7 @@
"body": [
"@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns/> .",
"@prefix dc: <http://purl.org/dc/elements/1.1/> .",
"@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#> .",
"@prefix thesis: <https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#> .",
"",
"<#${TM_FILENAME/.ttl//}>",
" a thesis:Article ;",
......
......@@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:thesis="https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#"
xmlns:thesis="https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#"
version="XHTML+RDFa 1.0" xml:lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
......
......@@ -14,7 +14,7 @@ from jinja2 import Environment, PackageLoader, select_autoescape
sparql = """
SELECT ?quote ?authors ?year ?appearance_title ?appearance_authors ?appearance_year ?fact_id ?appearance_id ?source_id ?title
WHERE {{
?fact_id rdf:type <https://projects.sisrlab.com/idm/visfact/raw/master/thesis.rdf#Claim> .
?fact_id rdf:type <https://projects.sisrlab.com/idm/visfact/raw/master/schema/thesis.rdf#Claim> .
?fact_id thesis:quote ?quote .
?fact_id thesis:appearance ?appearance_id .
?fact_id thesis:source ?source_id .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment