Skip to content

Instantly share code, notes, and snippets.

@arademaker
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arademaker/a5f7262f0652e3eacb35 to your computer and use it in GitHub Desktop.
Save arademaker/a5f7262f0652e3eacb35 to your computer and use it in GitHub Desktop.
playing with stardog and wordnet
stardog-admin server start
stardog-admin db drop wn
stardog-admin db create -n wn wn30.ttl
stardog data add wn test.ttl
stardog-admin icv add -v wn wn30.ttl
stardog icv validate -v -r wn ; the r option is necessary
Data is NOT valid.
The following constraints were violated:
AxiomConstraint{wn30:WordSense rdfs:subClassOf (wn30:word exactly 1 wn30:Word)}
AxiomConstraint{wn30:Word rdfs:subClassOf (wn30:sense some wn30:WordSense)}
AxiomConstraint{wn30:lexicalForm rdfs:subPropertyOf rdfs:label}
AxiomConstraint{wn30:sense owl:inverseOf wn30:word}
AxiomConstraint{wn30:Word rdfs:subClassOf (wn30:lexicalForm exactly 1 rdfs:Literal)}
AxiomConstraint{wn30:word owl:inverseOf wn30:sense}
Data is NOT valid.
The following constraints were violated:
AxiomConstraint{wn30:Word rdfs:subClassOf (wn30:sense some wn30:WordSense)}
AxiomConstraint{wn30:WordSense rdfs:subClassOf (wn30:inSynset exactly 1 wn30:Synset)}
AxiomConstraint{wn30:Word rdfs:subClassOf (wn30:lexicalForm exactly 1 rdfs:Literal)}
Data is valid.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix wn30: <https://w3id.org/own-pt/wn30/schema/> .
@prefix nomlex: <https://w3id.org/own-pt/nomlex/schema/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://w3id.org/own-pt/example/> .
:ws a wn30:WordSense ;
wn30:word :w1 ;
wn30:word :w2 .
:w1 a wn30:Word .
:w2 a wn30:Word .
:w1 wn30:lexicalForm "w1 form" ;
wn30:lexicalForm "w2 form" .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix wn30: <https://w3id.org/own-pt/wn30/schema/> .
@prefix nomlex: <https://w3id.org/own-pt/nomlex/schema/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://w3id.org/own-pt/example/> .
:ws a wn30:WordSense ;
wn30:word :w1 .
:w1 a wn30:Word .
:w2 a wn30:Word .
:w1 wn30:lexicalForm "w1 form" .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix wn30: <https://w3id.org/own-pt/wn30/schema/> .
@prefix nomlex: <https://w3id.org/own-pt/nomlex/schema/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix : <http://w3id.org/own-pt/example/> .
:ss a wn30:Synset ;
wn30:containsWordSense :ws1, :ws2 .
:ws1 a wn30:WordSense ;
wn30:word :w1 .
:w1 a wn30:Word .
:w2 a wn30:Word .
:ws2 a wn30:WordSense ;
wn30:word :w2 .
:w1 wn30:lexicalForm "w1 form" .
:w2 wn30:lexicalForm "w1 form" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment