Closed rafaelanchieta closed 6 years ago
@rafaelanchieta synsets are set of synonyms. The words in the same synset are consider synonyms in at least one context. The data is in RDF, so you will have to familiarize yourself with the properties and classes that we use to represent the wordnet: our data model. See the file https://github.com/own-pt/openWordnet-PT/blob/master/wn30.ttl
The synset http://wnpt.brlcloud.com/wn/synset?id=02084071-n is represented in the data file https://github.com/own-pt/openWordnet-PT/blob/master/own-pt.nt.gz by the triples below. Note how the Synset
node is connected to WordSense
nodes and each wordsense has a correspondent Word
node.
<https://w3id.org/own-pt/wn30-en/instances/synset-02084071-n> <http://www.w3.org/2002/07/owl#sameAs> <https://w3id.org/own-pt/wn30-pt/instances/synset-02084071-n> .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-3> <https://w3id.org/own-pt/wn30/schema/wordNumber> "3" .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-3> <http://www.w3.org/2000/01/rdf-schema#label> "cão" .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/own-pt/wn30/schema/WordSense> .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-3> <https://w3id.org/own-pt/wn30/schema/word> <https://w3id.org/own-pt/wn30-pt/instances/word-cão> .
<https://w3id.org/own-pt/wn30-pt/instances/synset-02084071-n> <https://w3id.org/own-pt/wn30/schema/containsWordSense> <https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-3> .
<https://w3id.org/own-pt/wn30-pt/instances/synset-02084071-n> <https://w3id.org/own-pt/wn30/schema/containsWordSense> <https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-4> .
<https://w3id.org/own-pt/wn30-pt/instances/synset-02084071-n> <http://www.w3.org/2004/02/skos/core#inScheme> <http://logics.emap.fgv.br/wn/> .
<https://w3id.org/own-pt/wn30-pt/instances/synset-02084071-n> <https://w3id.org/own-pt/wn30/schema/synsetId> "02084071"^^<http://www.w3.org/2001/XMLSchema#nonNegativeInteger> .
<https://w3id.org/own-pt/wn30-pt/instances/synset-02084071-n> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/own-pt/wn30/schema/NounSynset> .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-4> <https://w3id.org/own-pt/wn30/schema/wordNumber> "4" .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-4> <http://www.w3.org/2000/01/rdf-schema#label> "cachorro" .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/own-pt/wn30/schema/WordSense> .
<https://w3id.org/own-pt/wn30-pt/instances/wordsense-02084071-n-4> <https://w3id.org/own-pt/wn30/schema/word> <https://w3id.org/own-pt/wn30-pt/instances/word-cachorro> .
<https://w3id.org/own-pt/wn30-pt/instances/word-cachorro> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/own-pt/wn30/schema/Word> .
<https://w3id.org/own-pt/wn30-pt/instances/word-cachorro> <https://w3id.org/own-pt/wn30/schema/lexicalForm> "cachorro"@pt .
<https://w3id.org/own-pt/wn30-pt/instances/word-cão> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <https://w3id.org/own-pt/wn30/schema/Word> .
<https://w3id.org/own-pt/wn30-pt/instances/word-cão> <https://w3id.org/own-pt/wn30/schema/lexicalForm> "cão"@pt .
How can I use the resource to get synonyms? Can you show an example?