Skip to content

Commit

Permalink
adding assignment3 and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dachafra committed Sep 14, 2020
1 parent d5ac52e commit 6c4014c
Show file tree
Hide file tree
Showing 14 changed files with 925 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
85 changes: 85 additions & 0 deletions Assignment3/resources/data01.rdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0"?>


<!DOCTYPE rdf:RDF [
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY example5 "http://data.one.org#" >
<!ENTITY foaf "http://xmlns.com/foaf/0.1/" >
<!ENTITY vcard-rdf "http://www.w3.org/2001/vcard-rdf/3.0#" >
]>


<rdf:RDF xmlns="http://data.org#"
xml:base="http://data.org"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:vcard-rdf="http://www.w3.org/2001/vcard-rdf/3.0#">


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Datatypes
//
///////////////////////////////////////////////////////////////////////////////////////
-->

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0#EMAIL">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>

<rdfs:Property rdf:about="http://www.w3.org/2001/vcard-rdf/3.0#Family">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Property>

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0#Given">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<rdfs:Class rdf:about="#Person"/>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Individuals
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<Person rdf:about="#SaraJones">
</Person>

<Person rdf:about="#JohnSmith">
<vcard-rdf:Given rdf:datatype="&xsd;string">John</vcard-rdf:Given>
<vcard-rdf:EMAIL rdf:datatype="&xsd;string">[email protected]</vcard-rdf:EMAIL>
</Person>

<Person rdf:about="#JohnDoe">
<vcard-rdf:EMAIL rdf:datatype="&xsd;string">[email protected]</vcard-rdf:EMAIL>
<vcard-rdf:Family rdf:datatype="&xsd;string">Doe</vcard-rdf:Family>
</Person>

<Person rdf:about="#HarryPotter">
<vcard-rdf:Given rdf:datatype="&xsd;string">Harry</vcard-rdf:Given>
<vcard-rdf:Family rdf:datatype="&xsd;string">Potter</vcard-rdf:Family>
</Person>

</rdf:RDF>


98 changes: 98 additions & 0 deletions Assignment3/resources/data02.rdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0"?>


<!DOCTYPE rdf:RDF [
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY example5 "http://data.one.org#" >
<!ENTITY foaf "http://xmlns.com/foaf/0.1/" >
<!ENTITY vcard-rdf "http://www.w3.org/2001/vcard-rdf/3.0#" >
]>


<rdf:RDF xmlns="http://data.org#"
xml:base="http://data.org"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:vcard-rdf="http://www.w3.org/2001/vcard-rdf/3.0#">


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Datatypes
//
///////////////////////////////////////////////////////////////////////////////////////
-->

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/EMAIL">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>

<rdfs:Property rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/Family">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Property>

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/Given">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/FN">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<rdfs:Class rdf:about="#Person"/>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Individuals
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<Person rdf:about="#SaraJones">
<vcard-rdf:Given rdf:datatype="&xsd;string">Sara</vcard-rdf:Given>
<vcard-rdf:EMAIL rdf:datatype="&xsd;string">[email protected]</vcard-rdf:EMAIL>
<vcard-rdf:Family rdf:datatype="&xsd;string">Jones</vcard-rdf:Family>
</Person>


<Person rdf:about="#JohnSmith">
<vcard-rdf:Given rdf:datatype="&xsd;string">John</vcard-rdf:Given>
<vcard-rdf:EMAIL rdf:datatype="&xsd;string">[email protected]</vcard-rdf:EMAIL>
<vcard-rdf:Family rdf:datatype="&xsd;string">Smith</vcard-rdf:Family>
</Person>

<Person rdf:about="#JohnDoe">
<vcard-rdf:Given rdf:datatype="&xsd;string">John</vcard-rdf:Given>
<vcard-rdf:EMAIL rdf:datatype="&xsd;string">[email protected]</vcard-rdf:EMAIL>
<vcard-rdf:Family rdf:datatype="&xsd;string">Doe</vcard-rdf:Family>
</Person>


<Person rdf:about="#HarryPotter">
<vcard-rdf:Given rdf:datatype="&xsd;string">Harry</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">Harry Potter</vcard-rdf:FN>
<vcard-rdf:EMAIL rdf:datatype="&xsd;string">[email protected]</vcard-rdf:EMAIL>
</Person>


</rdf:RDF>


93 changes: 93 additions & 0 deletions Assignment3/resources/data03.rdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0"?>


<!DOCTYPE rdf:RDF [
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY example5 "http://data.one.org#" >
<!ENTITY foaf "http://xmlns.com/foaf/0.1/" >
<!ENTITY vcard-rdf "http://www.w3.org/2001/vcard-rdf/3.0#" >
]>


<rdf:RDF xmlns="http://data.three.org#"
xml:base="http://data.three.org"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:vcard-rdf="http://www.w3.org/2001/vcard-rdf/3.0#">


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Datatypes
//
///////////////////////////////////////////////////////////////////////////////////////
-->

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/FN">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>

<rdfs:Property rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/Family">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Property>

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/Given">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<rdfs:Class rdf:about="#Person"/>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Individuals
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<Person rdf:about="#SaraJones">
<vcard-rdf:Given rdf:datatype="&xsd;string">Sara</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">Sara Jones</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Jones</vcard-rdf:Family>
</Person>


<Person rdf:about="#JohnSmith">
<vcard-rdf:Given rdf:datatype="&xsd;string">John</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">John Smith</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Smith</vcard-rdf:Family>
</Person>

<Person rdf:about="#JohnDoe">
<vcard-rdf:Given rdf:datatype="&xsd;string">John</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">John Doe</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Doe</vcard-rdf:Family>
</Person>


<Person rdf:about="#HarryPotter">
<vcard-rdf:Given rdf:datatype="&xsd;string">Harry</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">Harry Potter</vcard-rdf:FN>
</Person>


</rdf:RDF>


102 changes: 102 additions & 0 deletions Assignment3/resources/data04.rdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<?xml version="1.0"?>


<!DOCTYPE rdf:RDF [
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY example5 "http://data.one.org#" >
<!ENTITY foaf "http://xmlns.com/foaf/0.1/" >
<!ENTITY vcard-rdf "http://www.w3.org/2001/vcard-rdf/3.0#" >
]>



<rdf:RDF xmlns="http://data.four.org#"
xml:base="http://data.four.org"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:vcard-rdf="http://www.w3.org/2001/vcard-rdf/3.0#"
xmlns:example5="http://www.semanticweb.org/ontologies/example5.rdf#">


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Datatypes
//
///////////////////////////////////////////////////////////////////////////////////////
-->

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/FN">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>

<rdfs:Property rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/Family">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Property>

<rdfs:Datatype rdf:about="http://www.w3.org/2001/vcard-rdf/3.0/Given">
<rdfs:range rdf:resource="&xsd;string"/>
</rdfs:Datatype>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<rdfs:Class rdf:about="#Person"/>


<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Individuals
//
///////////////////////////////////////////////////////////////////////////////////////
-->


<Person rdf:about="#0001">
<vcard-rdf:Given rdf:datatype="&xsd;string">Sara</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">Sara Jones</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Jones</vcard-rdf:Family>
</Person>


<Person rdf:about="#0002">
<vcard-rdf:Given rdf:datatype="&xsd;string">Jonathan</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">John Smith</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Smith</vcard-rdf:Family>
</Person>


<Person rdf:about="#0003">
<vcard-rdf:Given rdf:datatype="&xsd;string">Harry</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">Harry Potter</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Potter</vcard-rdf:Family>
</Person>


<Person rdf:about="#0004">
<vcard-rdf:Given rdf:datatype="&xsd;string">Tim</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">Tim Berners Lee</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Berners Lee</vcard-rdf:Family>
</Person>


<Person rdf:about="#0005">
<vcard-rdf:Given rdf:datatype="&xsd;string">John</vcard-rdf:Given>
<vcard-rdf:FN rdf:datatype="&xsd;string">John Doe</vcard-rdf:FN>
<vcard-rdf:Family rdf:datatype="&xsd;string">Doe</vcard-rdf:Family>
</Person>
</rdf:RDF>


Loading

0 comments on commit 6c4014c

Please sign in to comment.