0
필자는 선집을 가지고 평가를위한 인터페이스를 만들었거나 제출 버튼이 있습니다. 이 버튼은 이전 값과 값 (20) 내가 SPARQL와 인스턴스를 선택하려고 내가 인스턴스 (20)Sparql substract instance
valider.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
Model m=ModelFactory.createMemModelMaker().createModel(null);
FileManager.get().readModel(m, owlFile);
String myOntologyName = "ProjetHela";
String uri="file:///C:/Project/Krs1.owl";
// Définition de prefixe pour simplifier l'utilisation de SPARQL
String reuses = "maj: <"+RDF.getURI()+">" ;
// String myOntologyPrefix = "PREFIX "+myOntologyName+": <"+myOntologyNS+">" ;
String myOntologyPrefix = "PREFIX "+myOntologyName+": <"+uri+">" ;
// if (liste.getSelectedItem().toString().equals("GMP: Puissance=60352 Watt,limite supérieure= 73500 Watt")) {
String queryString=
"PREFIX maj: <http://www.owl-ontologies.com/reuses.owl#>"
+ "SELECT ?hasnameevaluated"
+ " WHERE "
+ "{"
+ "?Besoin maj:hasnameevaluated ?hasnameevaluated "
+"FILTER (?hasnameevaluated - 20) "
+ " } ";
Query query = QueryFactory.create(queryString) ;
QueryExecution qexec = QueryExecutionFactory.create(query, m) ;
try {
ResultSet rs = qexec.execSelect() ;
// Affichage des resultats
for (; rs.hasNext() ;){
//System.out.print("");
QuerySolution rb = rs.nextSolution() ;
String y = rb.getLiteral("hasnameevaluated").getString();
System.out.println(" " + y);
}} finally {
qexec.close() ;
}
}
}
);
가 있지만 아무튼 값으로 이전 값을 뺀 평가하는 것 사이의 차이를 계산 할 수 있습니다 '이 t은 나에게
그냥 새로운 가치를 원하니? hasnameevaluated =? ha snameevaluated - 20 –