1   package eu.fbk.dkm.premon.premonitor;
2   
3   import org.openrdf.model.Statement;
4   import org.openrdf.model.URI;
5   import org.openrdf.model.impl.ValueFactoryImpl;
6   import org.openrdf.model.vocabulary.RDFS;
7   
8   import java.util.ArrayList;
9   import java.util.List;
10  
11  /**
12   * Created by alessio on 09/10/15.
13   */
14  
15  public class PB2RDF {
16  
17  	static final ValueFactoryImpl factory = ValueFactoryImpl.getInstance();
18  	static final String NAMESPACE = "http://pb2rdf.org/ontology/";
19  	static final String VN_NAMESPACE = "http://pb2rdf.org/vn-ontology/";
20  
21  //	static final URI LEMMA = factory.createURI(NAMESPACE, "property/lemma");
22  //	static final URI ROLESET = factory.createURI(NAMESPACE, "property/roleset");
23  
24  	static final URI PB_THETA_ROLE_C = factory.createURI(NAMESPACE, "PBThetaRole");
25  	static final URI VN_THETA_ROLE_C = factory.createURI(VN_NAMESPACE, "VNThetaRole");
26  
27  	static final URI INFLECTION_C = factory.createURI(NAMESPACE, "Inflection");
28  	static final URI EX_ARG_C = factory.createURI(NAMESPACE, "ExampleArg");
29  	static final URI EX_REL_C = factory.createURI(NAMESPACE, "ExampleRel");
30  
31  	static final URI PB_THETA_ROLE = factory.createURI(NAMESPACE, "pbThetaRole");
32  	static final URI VN_THETA_ROLE = factory.createURI(VN_NAMESPACE, "vnThetaRole");
33  
34  	static final URI PB_EX_TYPE = factory.createURI(NAMESPACE, "pbType");
35  	static final URI PB_EX_NAME = factory.createURI(NAMESPACE, "pbName");
36  	static final URI PB_EX_SRC = factory.createURI(NAMESPACE, "pbSrc");
37  	static final URI PB_EX_INFLECTION = factory.createURI(NAMESPACE, "pbInflection");
38  	static final URI PB_INF_ASPECT = factory.createURI(NAMESPACE, "pbAspect");
39  	static final URI PB_INF_FORM = factory.createURI(NAMESPACE, "pbForm");
40  	static final URI PB_INF_PERSON = factory.createURI(NAMESPACE, "pbPerson");
41  	static final URI PB_INF_TENSE = factory.createURI(NAMESPACE, "pbTense");
42  	static final URI PB_INF_VOICE = factory.createURI(NAMESPACE, "pbVoice");
43  	static final URI PB_EX_ARG = factory.createURI(NAMESPACE, "pbExampleArg");
44  	static final URI PB_EX_REL = factory.createURI(NAMESPACE, "pbExampleRel");
45  
46  	static final URI SIMILAR = factory.createURI(NAMESPACE, "similar");
47  	static final URI ARG_SIMILAR = factory.createURI(NAMESPACE, "argSimilar");
48  
49  	static final URI createRole(Object roleName) {
50  		return factory.createURI(NAMESPACE, "role_" + roleName.toString());
51  	}
52  
53  	//todo: capire dove mettere 'sta roba
54  	static final List<Statement> createOntologyStatements() {
55  		List<Statement> statements = new ArrayList<Statement>();
56  
57  		statements.add(factory.createStatement(SIMILAR, RDFS.SUBPROPERTYOF, LEMON.SENSE_RELATION));
58  
59  		return statements;
60  	}
61  }