forked from FacultadInformatica-LinkedData/Curso2020-2021
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request FacultadInformatica-LinkedData#427 from Aaron1337m…
…en/master Fixed ttl and Assignment 2b
- Loading branch information
Showing
5 changed files
with
244 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rdf:RDF | ||
xml:base="http://www.ontogrid.net/StickyNote#" | ||
xmlns="http://www.ontogrid.net/StickyNote#" | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | ||
|
||
<rdf:Description rdf:about="#Class01"> | ||
<includes rdf:resource="#Sensor029"/> | ||
<includes rdf:resource="#Computer101"/> | ||
</rdf:Description> | ||
<rdf:Description rdf:about="#Sensor029"> | ||
<hasMeasurement rdf:resource="#Measurement8401"/> | ||
</rdf:Description> | ||
<rdf:Description rdf:about="#Computer101"> | ||
<hasOwner rdf:resource="#User10A"/> | ||
</rdf:Description> | ||
<rdf:Description rdf:about="#Measurement8401"> | ||
<hasTemperature rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">29</hasTemperature> | ||
<atTime rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2010-06-12T12:00:12</atTime> | ||
</rdf:Description> | ||
<rdf:Description rdf:about="#User10A"> | ||
<hasName>"Pedro"</hasName> | ||
</rdf:Description> | ||
</rdf:RDF> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@@ -0,0 +1,12 @@ | ||
@base <http://example.org/class>. | ||
@prefix : <http://www.ontogrid.net/StickyNote#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
<http://www.ontogrid.net/StickyNote#Class01> ns0:includes ns0:Sensor029, ns0:Computer101 . | ||
|
||
:Sensor029 :hasMeasurement :Measurement8401 . | ||
:Measurement8401 | ||
:hasTemperature "29"^^xsd:integer ; | ||
:atTime "2010-06-12T12:00:12"^^xsd:dateTime . | ||
:Computer101 :hasOwner :User10A . | ||
:User10A ns0:hasName "Pedro"^^xsd:string |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"@context" : { | ||
"xsd" : "http://www.w3.org/2001/XMLSchema#", | ||
"vocab" : "http://example.org/specialVocab/Assignment2b", | ||
"name" : "vocab:name", | ||
"middleName" : "vocab:middleName", | ||
"lastName" : "vocab:lastName", | ||
"hometown" : "vocab:hometown", | ||
"country" : "vocab:country", | ||
"age" : "vocab:age", | ||
"almaMater" : "vocab:almaMater", | ||
"mothesrName" : "vocab:mothesrName", | ||
"fathesrName" : "vocab:fathesrName", | ||
"subject" : "http://example.org/subject", | ||
"teachers" : "http://example.org/teachers", | ||
"description" : "rdfs:comment" | ||
}, | ||
"@id" : "http://example.org/specialVocab/Assignment2b/jorgesolgonzalez", | ||
"@type" : "vocab:student", | ||
"name" : "Jorge", | ||
"middleName" : "Sol", | ||
"lastName" : "Gonzalez", | ||
"hometown" : "Madrid", | ||
"country" : "España", | ||
"age" : "21", | ||
"almaMater" : "Universidad Politecnica Madrid", | ||
"mothersName" : "Almudena", | ||
"fathersName" : "Daniel", | ||
"subject" : [ | ||
{ | ||
"name" : "Ingenieria del Software II", | ||
"teachers" : [ | ||
{ | ||
"name" : "Tomas San Feliu Gilabert" | ||
}, | ||
{ | ||
"name" : "Jose Antonio Calvo" | ||
} | ||
], | ||
"description" : "La asignatura de Ingeniería del Software II se enfoca en aplicar los aspectos de gestión al desarrollo software." | ||
}, | ||
{ | ||
"name" : "Gestion de Procesos de Tecnologia de la Información", | ||
"teachers" : [ | ||
{ | ||
"name" : "Oscar Dieste Tubio" | ||
}, | ||
{ | ||
"name" : "Edmundo Tovar Caro" | ||
} | ||
], | ||
"description" : "En esta asignatura se tratan los elementos de una organización, la gestión por procesos, y modelos de calidadaplicados a organizaciones de TI" | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"@context": { | ||
"prefix": "http://example.org/components/", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#" | ||
}, | ||
"@graph": | ||
[ | ||
{ | ||
"@id": "prefix:Class01", | ||
"prefix:includes":[ | ||
{ | ||
"@id": "prefix:Sensor029" | ||
}, | ||
{ | ||
"@id": "prefix:Computer101" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "prefix:Sensor029", | ||
"prefix:hasMeasurement" : | ||
{ | ||
"@id": "prefix:Measurement8401" | ||
} | ||
}, | ||
{ | ||
"@id": "prefix:Measurement8401", | ||
"prefix:hasTemperature": 29, | ||
"prefix:atTime": { | ||
"@value": "2010-06-12T12:00:12", | ||
"@type": "xsd:dateTime" | ||
} | ||
}, | ||
{ | ||
"@id": "prefix:Computer101", | ||
"prefix:hasOwner": | ||
{ | ||
"@id": "prefix:User10A" | ||
} | ||
}, | ||
{ | ||
"@id": "prefix:User10A", | ||
"prefix:hasName": { | ||
"@value": "Pedro", | ||
"@type": "xsd:string" | ||
} | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
1.Get all the properties that can be applied to instances of the Politician class (<http://dbpedia.org/ontology/Politician>) | ||
|
||
select distinct ?property where { | ||
?instan a <http://dbpedia.org/ontology/Politician>; | ||
?property ?something | ||
} LIMIT 10 | ||
|
||
Resultados: | ||
property: | ||
http://www.w3.org/1999/02/22-rdf-syntax-ns#type | ||
http://www.w3.org/2000/01/rdf-schema#label | ||
http://www.w3.org/2000/01/rdf-schema#comment | ||
http://es.dbpedia.org/property/dead | ||
http://es.dbpedia.org/property/enelcargo | ||
http://es.dbpedia.org/property/equipoDebut | ||
http://es.dbpedia.org/property/equipoRetiro | ||
http://es.dbpedia.org/property/fortuna | ||
http://es.dbpedia.org/property/oponentes | ||
http://es.dbpedia.org/property/relaciones | ||
|
||
2.Get all the properties, except rdf:type, that can be applied to instances of the Politician class | ||
|
||
select distinct ?property where { | ||
?instan a <http://dbpedia.org/ontology/Politician>; | ||
?property ?something | ||
FILTER (?property != rdf:type) | ||
} LIMIT 10 | ||
|
||
Resultados: | ||
property: | ||
http://www.w3.org/2000/01/rdf-schema#label | ||
http://www.w3.org/2000/01/rdf-schema#comment | ||
http://es.dbpedia.org/property/dead | ||
http://es.dbpedia.org/property/enelcargo | ||
http://es.dbpedia.org/property/equipoDebut | ||
http://es.dbpedia.org/property/equipoRetiro | ||
http://es.dbpedia.org/property/fortuna | ||
http://es.dbpedia.org/property/oponentes | ||
http://es.dbpedia.org/property/relaciones | ||
http://es.dbpedia.org/property/retiro | ||
|
||
3.Which different values exist for the properties, except rdf:type, of the instances of the Politician class? | ||
|
||
select distinct ?property ?something where { | ||
?instan a <http://dbpedia.org/ontology/Politician>; | ||
?property ?something | ||
FILTER (?property != rdf:type) | ||
} LIMIT 10 | ||
|
||
Resultados: | ||
property: :something | ||
http://www.w3.org/2000/01/rdf-schema#label "Marcia Alicia Fernández Piña"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Argentina Rubiera"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Francisco Pizano de Brigard"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Gabriel Barceló"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Gabriel Cruz"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Guillermo Novara"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Gustavo Oliva"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Mario Alberto Dávila Delgado"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Raquel Barajas"@es | ||
http://www.w3.org/2000/01/rdf-schema#label "Rodrigo Hermosilla Gatica"@es | ||
|
||
4.For each of the properties, except rdf:type, that can be applied to instances of the Politician class, which different values do they take in those instances? | ||
|
||
select distinct ?instan ?property ?something where { | ||
?instan a <http://dbpedia.org/ontology/Politician>; | ||
?property ?something | ||
FILTER (?property != rdf:type) | ||
} LIMIT 10 | ||
|
||
Resultados: | ||
instan: property: something: | ||
http://es.dbpedia.org/resource/Marcia_Alicia_Fernández_Piña http://www.w3.org/2000/01/rdf-schema#label "Marcia Alicia Fernández Piña"@es | ||
http://es.dbpedia.org/resource/Argentina_Rubiera http://www.w3.org/2000/01/rdf-schema#label "Argentina Rubiera"@es | ||
http://es.dbpedia.org/resource/Francisco_Pizano_de_Brigard http://www.w3.org/2000/01/rdf-schema#label "Francisco Pizano de Brigard"@es | ||
http://es.dbpedia.org/resource/Gabriel_Barceló http://www.w3.org/2000/01/rdf-schema#label "Gabriel Barceló"@es | ||
http://es.dbpedia.org/resource/Gabriel_Cruz http://www.w3.org/2000/01/rdf-schema#label "Gabriel Cruz"@es | ||
http://es.dbpedia.org/resource/Guillermo_Novara http://www.w3.org/2000/01/rdf-schema#label "Guillermo Novara"@es | ||
http://es.dbpedia.org/resource/Gustavo_Oliva http://www.w3.org/2000/01/rdf-schema#label "Gustavo Oliva"@es | ||
http://es.dbpedia.org/resource/Mario_Alberto_Dávila_Delgado http://www.w3.org/2000/01/rdf-schema#label "Mario Alberto Dávila Delgado"@es | ||
http://es.dbpedia.org/resource/Raquel_Barajas http://www.w3.org/2000/01/rdf-schema#label "Raquel Barajas"@es | ||
http://es.dbpedia.org/resource/Rodrigo_Hermosilla_Gatica http://www.w3.org/2000/01/rdf-schema#label "Rodrigo Hermosilla Gatica"@es | ||
|
||
5.For each of the properties, except rdf:type, that can be applied to instances of the Politician class, how many distinct values do they take in those instances? | ||
|
||
select distinct ?instan ?property count(?something)as ?num where { | ||
?instan a <http://dbpedia.org/ontology/Politician>; | ||
?property ?something | ||
FILTER (?property != rdf:type) | ||
} LIMIT 10 | ||
|
||
Resultados: | ||
instan: property: num: | ||
http://es.dbpedia.org/resource/Absalón_Castellanos_Domínguez http://dbpedia.org/ontology/birthDate 1 | ||
http://es.dbpedia.org/resource/Mariano_Mendizábal http://dbpedia.org/ontology/deathPlace 2 | ||
http://es.dbpedia.org/resource/Dávid_Ibolya http://xmlns.com/foaf/0.1/givenName 1 | ||
http://es.dbpedia.org/resource/Edgardo_Seoane_Corrales http://xmlns.com/foaf/0.1/isPrimaryTopicOf 1 | ||
http://es.dbpedia.org/resource/Massimo_Andrea_Ugolini http://dbpedia.org/ontology/birthDate 1 | ||
http://es.dbpedia.org/resource/María_de_los_Ángeles_Duarte http://es.dbpedia.org/property/final 2 | ||
http://es.dbpedia.org/resource/Rafael_Tovar_y_de_Teresa http://es.dbpedia.org/property/período 4 | ||
http://es.dbpedia.org/resource/Joe-Fio_Neenyann_Meyer http://dbpedia.org/ontology/abstract 1 | ||
http://es.dbpedia.org/resource/Juan_de_Dios_Vial_Larraín http://xmlns.com/foaf/0.1/givenName 1 | ||
http://es.dbpedia.org/resource/Carlos_Ramón_Fort http://es.dbpedia.org/property/nombre 2 |