⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soapclient.java

📁 这是外国一个开源推理机
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
   * @param resource URI of the property   * @param direct flag indicating to include only its direct properties   * @return Vector containing the URI's of the superproperties   */  public Vector getSuperPropertiesOf(String resource, boolean direct) {    return (Vector)invoke(getSuperPropertiesOf_0, new String[]{"resource", "direct"}, new Object[]{resource, Boolean.valueOf(direct)});  }  /**   * Check that a URI is a class   * @param resource URI to check   * @return true if not fail   */  public boolean isClass(String resource){    Object o = invoke(isClass_0, new String[]{"resource"}, new Object[]{resource});    return ((Boolean)o).booleanValue();  }  /**   * Check that a URI is a property   * @param resource URI to check   * @return true if not fail   */  public boolean isProperty(String resource) {    Object o = invoke(isProperty_0, new String[]{"resource"}, new Object[]{resource});    return ((Boolean)o).booleanValue();  }  /**   * Check that a URI is an instance of a class   * @param anInstance URI of the instance to check   * @param aClass URI of the class to check for   * @param proper flag indication that only the proper instances of the class will   * match the criteria   * @return true if not fail   */  public boolean isInstanceOf(String anInstance, String aClass, boolean proper){    Object o = invoke(isInstanceOf_0, new String[]{"anInstance", "aClass", "proper"}, new Object[]{anInstance, aClass, Boolean.valueOf(proper)});    return ((Boolean)o).booleanValue();  }  /**   * Query for subsumtion of two classes   * @param subClass URI of the subClass   * @param superClass URI of the superClass   * @param direct flag indicating to check for direct subsumption   * @return true if not fail   */  public boolean isSubClassOf(String subClass, String superClass, boolean direct) {    Object o = invoke(isSubClassOf_0, new String[]{"subClass", "superClass", "direct"}, new Object[]{subClass, superClass, Boolean.valueOf(direct)});    return ((Boolean)o).booleanValue();  }  /**   * Query for subsumtion of two properties   * @param subProperty URI of the subProperty   * @param superProperty URI of the superProperty   * @param direct flag indicating to check for direct subsumption   * @return true if not fail   */  public boolean isSubPropertyOf(String subProperty, String superProperty, boolean direct) {    Object o = invoke(isSubPropertyOf_0, new String[]{"subProperty", "superProperty","direct"}, new Object[]{subProperty, superProperty, Boolean.valueOf(direct)});    return ((Boolean)o).booleanValue();  }  /**   * remove statements from the repository   * @param subjURI URI of the subject   * @param predURI URI of the predicate   * @param objURI URI of the object   * @param bObjectIsLiteral flag indicating that the URI of the object is Literal   */  public int removeStatements(String subjURI, String predURI, String objURI, boolean bObjectIsLiteral) {    Object o = invoke(removeStatements_0, new String[]{"subjURI","predURI","objURI","bObjectIsLiteral"}, new Object[]{subjURI,predURI,objURI,Boolean.valueOf(bObjectIsLiteral)});    return ((Integer)o).intValue();  }  /**   * Upload RDF(S) data to current repository   * @param data valid RDF content to upload   * @param baseURL the namespace of the uploaded content   */  public int uploadData(String data, String baseURL) {    Object o = invoke(uploadData_0, new String[]{"data","baseURL"}, new Object[]{data, baseURL});    return ((Integer)o).intValue();  }	/* ->->-> Versioning And Tracking ->->-> */	/**	 * Create a labeled version for a statte of the repository assigning the	 * necessary mata-information about thet operation.	 * @param stateUID the update counetr of a particular repository state	 * @param label the label to be set for this state	 * NOTE: This method can throw a security exception if the request is made on	 * behalf of the user with insufficent rights to create versions	 */	public void labelState(String stateUID, String label) {		invoke(labelState_0,new String[]{"stateUID","label"},new Object[]{stateUID,label});	}	/**	 * Create a labeled version of the curent repository state.	 * NOTE: This method can throw an exception if the request is made on	 * behalf of an user with insufficent rights to create versions	 */	public void labelCurrentState(String label) {		invoke(labelCurrentState_0,new String[]{"label"},new Object[]{label});	}	/**	 * Restore the repository to previous state removing all statements added	 * after the value of the update counter and revive all remover ones.	 * @param stateUID the update counter of a particular repository state	 * NOTE: This method can throw an exception if the request is made on	 * behalf of an user with insufficent rights to revert the repository	 */	public void revertToState(String stateUID) {		invoke(revertToState_0,new String[]{"stateUID"},new Object[]{stateUID});	}	/**	 * Sets the repository to given state for further read operations.	 * @param stateUID the update counter of a particular repository state	 */	public void workWithState(String stateUID){		invoke(workWithState_0,new String[]{"stateUID"},new Object[]{stateUID});	}	/**	 * branch the repository at given state for further operations.	 * @param stateUID the update counter of a particular repository state	 * @return the id of the repository	 */	public String branchState(String stateUID){		Object o = invoke(branchState_0,new String[]{"stateUID"},new Object[]{stateUID});		return (String)o;	}	/**	 * Retrive list of all labeled states of the repository.	 * @return a list of Versin interfaces for each labeled state of the repository	 */	public Vector getVersions(){		Object o = invoke(getVersions_0,new String[]{},new Object[]{});		return (Vector)o;	}	/**	 * Retrive list of all Updates of the repository.	 * @return a list of Updates of the repository	 */	public Vector getUpdateIds() {		Object o = invoke(getUpdateIds_0,new String[]{},new Object[]{});		Vector v = (Vector) o;		return v;	}	/**	 * Stop the increment of the update counter. Usefull for a kind of batch updates	 * or adding a distinct daml coinstructs at once.	 */	public void pauseCounterIncrement() {		invoke(pauseCounterIncrement_0,new String[]{},new Object[]{});	}	/**	 * Coninue with the normal increment of the update counter on each modification	 * made in the repository.	 */	public void continueCounterIncrement() {		invoke(continueCounterIncrement_0,new String[]{},new Object[]{});	}	/**	 * Check if the update couter ss paused	 * @return true if the updateCouter is paused, flase otherwise	 */	public boolean isPausedCounterIncrement() {		Object o = invoke(isPausedCounterIncrement_0,new String[]{},new Object[]{});		return ((Boolean) o).booleanValue();	}	public Vector getVersionIds() {		Object o = invoke(getVersionIds_0,new String[]{},new Object[]{});		Vector v = (Vector) o;		return v;	}	public Map getMetaInfo(String subj, String pred, String obj) {		Object o = invoke(getMetaInfo_0,new String[]{"subj","pred","obj"},											new Object[]{subj,pred,obj});		Map map = (Map) o;		return map;	}	public Map getVersionMetaInfo(String versionId) {		Object o = invoke(getVersionMetaInfo_0,new String[]{"versionId"},											new Object[]{versionId});		Map map = (Map) o;		return map;	}	public Map getUpdateMetaInfo(String updateId) {		Object o = invoke(getUpdateMetaInfo_0,new String[]{"updateId"},											new Object[]{updateId});		Map map = (Map) o;		return map;	}	/* -<-<-< Versioning And Tracking -<-<-< *///----------------------------------------------------------------------// simple reflection used to ease the SOAP invokation  private static java.lang.reflect.Method addDataFromUrl_0;  private static java.lang.reflect.Method clearRepository_0;  private static java.lang.reflect.Method evalRdqlQuery_0;  private static java.lang.reflect.Method evalRqlQuery_0;  private static java.lang.reflect.Method extractRDF_0;  private static java.lang.reflect.Method getClasses_0;  private static java.lang.reflect.Method getClassesOf_0;  private static java.lang.reflect.Method getInstancesOf_0;  private static java.lang.reflect.Method getProperties_0;  private static java.lang.reflect.Method getStatements_0;  private static java.lang.reflect.Method hasStatement_0;  private static java.lang.reflect.Method getSubClassesOf_0;  private static java.lang.reflect.Method getSubPropertiesOf_0;  private static java.lang.reflect.Method getSuperClassesOf_0;  private static java.lang.reflect.Method getSuperPropertiesOf_0;  private static java.lang.reflect.Method isClass_0;  private static java.lang.reflect.Method isProperty_0;  private static java.lang.reflect.Method isInstanceOf_0;  private static java.lang.reflect.Method isSubClassOf_0;  private static java.lang.reflect.Method isSubPropertyOf_0;	private static java.lang.reflect.Method listRepositories_0;	private static java.lang.reflect.Method getRepositoryTitle_0;  private static java.lang.reflect.Method login_0;  private static java.lang.reflect.Method removeStatements_0;  private static java.lang.reflect.Method selectRepository_0;  private static java.lang.reflect.Method uploadData_0;	private static java.lang.reflect.Method labelState_0;	private static java.lang.reflect.Method	labelCurrentState_0;	private static java.lang.reflect.Method revertToState_0;	private static java.lang.reflect.Method workWithState_0;	private static java.lang.reflect.Method branchState_0;	private static java.lang.reflect.Method getVersions_0;	private static java.lang.reflect.Method getUpdateIds_0;	private static java.lang.reflect.Method pauseCounterIncrement_0;	private static java.lang.reflect.Method continueCounterIncrement_0;	private static java.lang.reflect.Method isPausedCounterIncrement_0;	private static java.lang.reflect.Method getVersionIds_0;	private static java.lang.reflect.Method getMetaInfo_0;	private static java.lang.reflect.Method getVersionMetaInfo_0;	private static java.lang.reflect.Method getUpdateMetaInfo_0;  static {    try {      addDataFromUrl_0 = SoapClient.class.getMethod("addDataFromUrl", new Class[] {String.class, String.class} );      clearRepository_0 = SoapClient.class.getMethod("clearRepository", new Class[] {} );      evalRdqlQuery_0 = SoapClient.class.getMethod("evalRdqlQuery", new Class[] {String.class} );      evalRqlQuery_0 = SoapClient.class.getMethod("evalRqlQuery", new Class[] {String.class} );      extractRDF_0 = SoapClient.class.getMethod("extractRDF", new Class[] {boolean.class,boolean.class,boolean.class} );      getClasses_0 = SoapClient.class.getMethod("getClasses", new Class[] {} );      getClassesOf_0 = SoapClient.class.getMethod("getClassesOf", new Class[] {String.class,boolean.class} );      getInstancesOf_0 = SoapClient.class.getMethod("getInstancesOf", new Class[] {String.class,boolean.class} );      getProperties_0 = SoapClient.class.getMethod("getProperties", new Class[] {} );      getStatements_0 = SoapClient.class.getMethod("getStatements", new Class[] {String.class, String.class, String.class, boolean.class, boolean.class} );      hasStatement_0 = SoapClient.class.getMethod("hasStatement", new Class[] {String.class, String.class, String.class, boolean.class, boolean.class} );      getSubClassesOf_0 = SoapClient.class.getMethod("getSubClassesOf", new Class[] {String.class, boolean.class} );      getSubPropertiesOf_0 = SoapClient.class.getMethod("getSubPropertiesOf", new Class[] {String.class, boolean.class} );      getSuperClassesOf_0 = SoapClient.class.getMethod("getSuperClassesOf", new Class[] {String.class, boolean.class} );      getSuperPropertiesOf_0 = SoapClient.class.getMethod("getSuperPropertiesOf", new Class[] {String.class, boolean.class} );      isClass_0 = SoapClient.class.getMethod("isClass", new Class[] {String.class} );      isProperty_0 = SoapClient.class.getMethod("isProperty", new Class[] {String.class} );      isInstanceOf_0 = SoapClient.class.getMethod("isInstanceOf", new Class[] {String.class, String.class, boolean.class} );      isSubClassOf_0 = SoapClient.class.getMethod("isSubClassOf", new Class[] {String.class, String.class, boolean.class} );      isSubPropertyOf_0 = SoapClient.class.getMethod("isSubPropertyOf", new Class[] {String.class, String.class, boolean.class} );      listRepositories_0 = SoapClient.class.getMethod("listRepositories", new Class[] {} );			getRepositoryTitle_0= SoapClient.class.getMethod("getRepositoryTitle", new Class[] {String.class} );      login_0 = SoapClient.class.getMethod("login", new Class[] {String.class, String.class} );      removeStatements_0 = SoapClient.class.getMethod("removeStatements", new Class[] {String.class, String.class, String.class, boolean.class} );      selectRepository_0 = SoapClient.class.getMethod("selectRepository", new Class[] {String.class} );      uploadData_0 = SoapClient.class.getMethod("uploadData", new Class[] {String.class, String.class} );			// versioning and tracking			labelState_0 = SoapClient.class.getMethod("labelState", new Class[] {String.class, String.class} );			labelCurrentState_0 = SoapClient.class.getMethod("labelCurrentState", new Class[] {String.class} );			revertToState_0 = SoapClient.class.getMethod("revertToState", new Class[] {String.class} );			workWithState_0 = SoapClient.class.getMethod("workWithState", new Class[] {String.class} );			branchState_0 = SoapClient.class.getMethod("branchState", new Class[] {String.class} );			getVersions_0 = SoapClient.class.getMethod("getVersions", new Class[] {} );			getUpdateIds_0 = SoapClient.class.getMethod("getUpdateIds", new Class[] {} );			pauseCounterIncrement_0 =	SoapClient.class.getMethod("pauseCounterIncrement", new Class[] {} );			continueCounterIncrement_0 = SoapClient.class.getMethod("continueCounterIncrement", new Class[] {} );			isPausedCounterIncrement_0 = SoapClient.class.getMethod("isPausedCounterIncrement", new Class[] {} );			getVersionIds_0 = SoapClient.class.getMethod("getVersionIds", new Class[] {} );			//meta info			getMetaInfo_0 = SoapClient.class.getMethod("getMetaInfo", new Class[] {String.class,String.class,String.class} );			getVersionMetaInfo_0 = SoapClient.class.getMethod("getVersionMetaInfo", new Class[] {String.class} );			getUpdateMetaInfo_0 = SoapClient.class.getMethod("getUpdateMetaInfo", new Class[] {String.class} );    } catch (NoSuchMethodException e ) {      e.printStackTrace();    }  } // static initializer} // SoapClient

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -