Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions Assignment2/TheDarky-YT-fromJSONtoJSON-LD.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"@context": {
"ex": "http://example.org/",
"schema": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@type": "schema:Person",
"schema:name": "Dario",
"schema:homeLocation": {
"@type": "schema:Place",
"schema:name": "Getafe"
},
"schema:age": {
"@type": "xsd:integer",
"@value": 21
},
"schema:almaMater": {
"@type": "schema:EducationalOrganization",
"schema:name": "Universidad Politécnica de Madrid"
},
"schema:parents": [
{
"@type": "schema:Person",
"schema:name": "Antonio Recio"
},
{
"@type": "schema:Person",
"schema:name": "Rocío Durcal"
}
],
"ex:subjectsThisYear": [
{
"@type": "ex:Subject",
"ex:name": "Ingeniería del Software II",
"ex:teachers": ["Jose Antonio"],
"ex:description": "Estudio del ciclo de vida del software y patrones de diseño."
},
{
"@type": "ex:Subject",
"ex:name": "EPAC",
"ex:teachers": ["Hanane"],
"ex:description": "Inglés con fines profesionales."
},
{
"@type": "ex:Subject",
"ex:name": "Semantic Web, Linked Data and Knowledge Graphs",
"ex:teachers": ["Oscar, Raul"],
"ex:description": "La mejor clase de todas."
}
]
}

40 changes: 40 additions & 0 deletions Assignment2/TheDarky-YT-fromRDFtoJSON-LD.jsonld
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"@context": {
"includes": "http://example.org/includes",
"hasMeasurement": "http://example.org/hasMeasurement",
"hasTemperature": "http://example.org/hasTemperature",
"atTime": "http://example.org/atTime",
"hasOwner": "http://example.org/hasOwner",
"hasName": "http://example.org/hasName"
},
"@graph": [
{
"@id": "http://example.org/Class01",
"includes": {
"@id": "http://example.org/Sensor029"
}
},
{
"@id": "http://example.org/Sensor029",
"hasMeasurement": {
"@id": "http://example.org/Measurement8401"
}
},
{
"@id": "http://example.org/Measurement8401",
"hasTemperature": "29",
"atTime": "2010-06-12T12:00:12"
},
{
"@id": "http://example.org/Computer101",
"hasOwner": {
"@id": "http://example.org/User10A"
}
},
{
"@id": "http://example.org/User10A",
"hasName": "Pedro"
}
]
}

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions Assignment2/TheDarky-YT_Dario Puras Perales_Assesment1b.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@prefix ex: <http://example.org/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# Recurso que representa el aula 03, contiene un sensor y una mesa
ex:ClassRoom03
ex:contains ex:Sensor347, ex:Table322 ; # El aula contiene un sensor y una mesa
.

# Recurso que representa el sensor 347, que está en el aula
ex:Sensor347
ex:hasMeasurement ex:Measurement8432 ; # El sensor hizo una medición, referenciada como Measurement8432
.

# Mediciones capturadas por el sensor
ex:Measurement8432
ex:hasTemperature 29 ; # La temperatura registrada por el sensor fue de 29 grados (Celsius)
ex:atTime "2022-09-12T12:01:12"^^xsd:dateTime ; # Fecha y hora exacta de la medición
.

# Recurso que representa la mesa 322, también contenida en el aula
ex:Table322
ex:hasOwner ex:ETSIInformaticos ; # Esta mesa tiene un propietario, la ETSI de Informáticos
.

# Información sobre el propietario de la mesa, ETSIInformáticos
ex:ETSIInformaticos
ex:hasName "ETSI Informáticos" ; # Nombre completo del propietario, en este caso es un departamento o grupo
.