diff --git a/Assignment2/carlosvelazquezz.png b/Assignment2/carlosvelazquezz.png new file mode 100644 index 00000000..35ed5aab Binary files /dev/null and b/Assignment2/carlosvelazquezz.png differ diff --git a/Assignment2/carlosvelazquezz.ttl b/Assignment2/carlosvelazquezz.ttl new file mode 100644 index 00000000..9427bde3 --- /dev/null +++ b/Assignment2/carlosvelazquezz.ttl @@ -0,0 +1,9 @@ +@prefix a2b: . +@prefix xsd: . + +a2b:ClassRoom03 a2b:contains a2b:Sensor347, a2b:Table322 . +a2b:Sensor347 a2b:hasMeasurement a2b:Measurement8432 . +a2b:Measurement8432 a2b:hasTemperature "29"^^xsd:int ; +a2b:Measurement8432 a2b:atTime "2022-09-12T12:01:12"^^xsd:dateTime . +a2b:Table322 a2b:hasOwner a2b:ETSIInformaticos . +a2b:ETSIInformaticos a2b:hasName "ETSI Informaticos" . diff --git a/Assignment2/carlosvelazquezzfromJSONtoJSON-LD.jsonld b/Assignment2/carlosvelazquezzfromJSONtoJSON-LD.jsonld new file mode 100644 index 00000000..f4b49def --- /dev/null +++ b/Assignment2/carlosvelazquezzfromJSONtoJSON-LD.jsonld @@ -0,0 +1,65 @@ +{ + "@context": { + "@vocab": "http://example.org/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "schema": "http://schema.org/", + "fullName": "schema:name", + "hometown": "schema:address", + "age": { + "@id": "schema:age", + "@type": "xsd:integer" + }, + "almaMater": "schema:alumniOf", + "parents": { + "@id": "schema:parent", + "@container": "@set" + }, + "subjects": { + "@id": "schema:Course", + "@container": "@list" + } + }, + "@type": "schema:Person", + "fullName": "Carlos Velazquez", + "hometown": "Madrid", + "age": 20, + "almaMater": "Universidad Politecnica de Madrid", + "parents": [ + { + "@type": "schema:Person", + "fullName": "Carlos Velazquez" + }, + { + "@type": "schema:Person", + "fullName": "Maria Luisa Arranz" + } + ], + "subjects": [ + { + "@type": "schema:Course", + "name": "Semantic Web", + "teachers": [ + { + "@type": "schema:Person", + "fullName": "Oscar Corcho" + }, + { + "@type": "schema:Person", + "fullName": "Raul Garcia Castro" + } + ], + "description": "Data Linking, Knowledge Graphs and more." + }, + { + "@type": "schema:Course", + "name": "EPAC", + "teachers": [ + { + "@type": "schema:Person", + "fullName": "Hanan Benali" + } + ], + "description": "I forgot the workbook." + } + ] +} diff --git a/Assignment2/carlosvelazquezzfromRDFtoJSON-LD.jsonld b/Assignment2/carlosvelazquezzfromRDFtoJSON-LD.jsonld new file mode 100644 index 00000000..b74ce5c8 --- /dev/null +++ b/Assignment2/carlosvelazquezzfromRDFtoJSON-LD.jsonld @@ -0,0 +1,47 @@ +{ + "@context": { + "base": "http://example.org/", + "xsd": "http://www.w3.org/2001/XMLSchema#", +{ + "@context": { + "base": "http://example.org/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "includes": "base:includes", + "hasMeasurement": "base:hasMeasurement", + "hasTemperature": "base:hasTemperature", + "atTime": "base:atTime", + "hasOwner": "base:hasOwner", + "hasName": "base:hasName" + }, + "@graph": [ + { + "@id": "base:Class01", + "includes": [ + { + "@id": "base:Sensor029", + "hasMeasurement": { + "@id": "base:Measurement8401", + "hasTemperature": { + "@type": "xsd:int", + "@value": 29 + }, + "atTime": { + "@value": "2010-06-12T12:00:12", + "@type": "xsd:dateTime" + } + } + }, + { + "@id": "base:Computer101", + "hasOwner": { + "@id": "base:User10A", + "hasName": { + "@value": "Pedro", + "@type": "xsd:string" + } + } + } + ] + } + ] +}