Last active
March 8, 2018 00:23
-
-
Save jneira/e054d2ea7d84ea30255ece248d1c8555 to your computer and use it in GitHub Desktop.
Ejercicio sparql 1.1 https://www.coursera.org/learn/web-semantica
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
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix : <#> . | |
# Modelo sacado de los videos de la semana 5 | |
:Don_Quijote rdf:type :Caballero . | |
:Sancho rdf:type :Escudero . | |
:Gigante rdf:type :Molino . | |
:Don_Quijote :amigo :Sancho . | |
:amigo rdf:type owl:SymmetricProperty . | |
:Don_Quijote :alojaCon :Dulcinea . | |
:Sancho :alojaCon :Don_Quijote . | |
:alojaCon rdf:type owl:TransitiveProperty . | |
:Don_Quijote :atacaA :Gigante . | |
:Sancho :atacaA :Gigante . | |
:atacaA owl:inverseOf :seDefiende . | |
:Don_Quijote owl:sameAs :Alonso_Quijano . | |
:Persona owl:unionOf (:Hombre :Mujer) . | |
:Dulcinea rdf:type :Mujer . | |
:Don_Quijote rdf:type :Hombre . | |
:Sancho rdf:type :Hombre . | |
:El_quijote rdf:type :Libro_De_Aventuras . | |
:Libro_De_Aventuras owl:disjointWith :aburrido . | |
:Caballero rdf:subClassOf :Persona . | |
:Escudero rdf:subClassOf :Persona . | |
:amigo rdfs:subPropertyOf :conoceA . | |
:atacaA rdfs:subPropertyOf :conoceA . | |
:alojaCon rdfs:subPropertyOf :conoceA . | |
:conoceA rdf:type owl:SymmetricProperty . | |
:noConoceA owl:inverseOf :conoceA . | |
:Rocinante rdf:type :Caballo . | |
:Rocinante :jinete :Don_Quijote . | |
:jinete owl:inverseOf :montura . |
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
@prefix : <http://base/#> . | |
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@prefix fuseki: <http://jena.apache.org/fuseki#> . | |
:service1 a fuseki:Service ; | |
fuseki:dataset <#dataset> ; | |
fuseki:name "Quijote" ; | |
fuseki:serviceQuery "query" , "sparql" ; | |
fuseki:serviceReadGraphStore "get" ; | |
fuseki:serviceReadWriteGraphStore | |
"data" ; | |
fuseki:serviceUpdate "update" ; | |
fuseki:serviceUpload "upload" . | |
# Dataset with only the default graph. | |
<#dataset> rdf:type ja:RDFDataset ; | |
ja:defaultGraph <#model_inf> ; | |
. | |
# The inference model | |
<#model_inf> a ja:InfModel ; | |
ja:baseModel <#baseModel> ; | |
ja:reasoner [ | |
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner> | |
] . | |
# The base data. | |
<#baseModel> a ja:MemoryModel ; | |
ja:content [ja:externalContent <file:data/data.ttl> ] ; | |
. |
Hola amigo, me gustaria saber como hiciste esos ejercicio porque en los videos no enseñan :( :( porfa y quisiera aprender y veo que vosotro lo manejas muy bien , te lo agradeceria
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuracion para ejecutar fuskeki con inferencia:
Quijote.ttl es la configuracion del datset, debe ir en %FUSEKI_HOME%/run/configuration
data.ttl es el modelo de datos debe ir en %FUSEKI_HOME%/run/configuration/data