亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? rdfschemamodel.java

?? 好東西啊!你看看就知道了
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package edu.stanford.db.rdf.schema;import org.w3c.rdf.model.*;import org.w3c.rdf.implementation.model.NodeFactoryImpl;import org.w3c.rdf.util.SetOperations;import java.util.*;import org.w3c.rdf.vocabulary.rdf_syntax_19990222.RDF;import org.w3c.rdf.vocabulary.rdf_schema_19990303.RDFS;// for testing onlyimport org.w3c.rdf.util.*;/** * RDF schema model supports subclassing and validates RDF schemas. */public class RDFSchemaModel implements VirtualModel {  static final int MAX_CLOSURE_DEPTH = 50;  NodeFactory nodeFactory;  Model instances, closure;  public RDFSchemaModel() {    this(new NodeFactoryImpl());  }  /**   * Creates a schema model, <tt>closure</tt> must contain transitive closures of <tt>subClassOf</tt> and <tt>subPropertyOf</tt>   */  public RDFSchemaModel(Model instances, Model closure) {    this();    this.instances = instances;    this.closure = closure;  }  public RDFSchemaModel(NodeFactory f) {    nodeFactory = f;  }  public RDFSchemaModel(NodeFactory f, Model instances, Model closure) {    this(f);    this.instances = instances;    this.closure = closure;  }  public String getLabel() throws ModelException {    return instances.getLabel();  }  public String getURI() throws ModelException {    return instances.getURI();  }  public String getLocalName() throws ModelException {    return instances.getLocalName();  }  public String getNamespace() throws ModelException {    return instances.getNamespace();  }  /**   * @return model contains the fact basis of this model   */  public Model getGroundModel() throws ModelException {    return instances;  }  /**   * Set a base URI for the model.   * Affects creating of new resources and serialization syntax.   * Inherited method getURI returns the URI set in this method   */  public void setSourceURI(String uri) throws ModelException {    instances.setSourceURI(uri);  }  /**   * Returns current base URI setting.   */  public String getSourceURI() throws ModelException {    return instances.getSourceURI();  }  // Model access  /**   * Number of triples in the model   *   * @return  number of triples, -1 if unknown   *    * @seeAlso org.w3c.rdf.model.VirtualModel   */  public int size() throws ModelException {    return -1;  }  /**   * true if the model contains no triples   */  public boolean isEmpty() throws ModelException {    return instances.isEmpty();  }  /**   * Enumerate triples   */  public Enumeration elements() throws ModelException {    return new RDFSchemaModelEnumeration(instances, closure);  }  /**   * Tests if the model contains the given triple.   *   * @return  <code>true</code> if the triple belongs to the model;   *          <code>false</code> otherwise.   */  public boolean contains(Statement t) throws ModelException {    // FIXME: efficiency?    return !find(t.subject(), t.predicate(), t.object()).isEmpty();  }  // Model manipulation: add, remove, find  /**   * Adds a new triple to the model.   */  public void add(Statement t) throws ModelException {    instances.add(t);  }  /**   * Removes the triple from the model.   */  public void remove(Statement t) throws ModelException {    instances.remove(t);  }  /**   * General method to search for triples.   * <code>null</code> input for any parameter will match anything.   * <p>Example: <code>Model result = m.find( null, RDF.type, new ResourceImpl("http://...#MyClass") )</code>   * <p>finds all instances of the class <code>MyClass</code>   */  public Model find( Resource subject, Resource predicate, RDFNode object ) throws ModelException {    // only two special cases for now    // we need it anyway    Model res = instances.find(subject, predicate, object);    // asking for instances    if(object != null && RDF.type.equals(predicate)) {      // find instances      Model subclass = closure.find(null, RDFS.subClassOf, object);      if(!subclass.isEmpty()) {                                // collect subproperties        for(Enumeration en = subclass.elements(); en.hasMoreElements();) {          SetOperations.unite( res, instances.find(subject, RDF.type, ((Statement)en.nextElement()).subject()) );        }      }    } else if(RDFS.subClassOf.equals(predicate)) {      res = closure.find(subject, predicate, object);    } else if(predicate != null) {      // Check for subproperties      Model subprop = closure.find(null, RDFS.subPropertyOf, predicate);      if(!subprop.isEmpty()) {                                // collect subproperties        for(Enumeration en = subprop.elements(); en.hasMoreElements();) {          SetOperations.unite( res, instances.find(subject, ((Statement)en.nextElement()).subject(), object) );        }      }    }    return res;  }  /**   * Search for a single triple.   * <code>null</code> input for any parameter will match anything.   *   * @return  a single triple if such was found;<br>   *          <code>null</code> if nothing was found;<br>   *          otherwise a RuntimeException is thrown.   public Statement find1( Resource subject, Resource predicate, RDFnode object );  */  /**   * Clone the model.   */  public Model duplicate() throws ModelException {    return new RDFSchemaModel(nodeFactory, instances.duplicate(), closure);  }  /**   * Creates empty model of the same Class   */  public Model create() throws ModelException {    return new RDFSchemaModel(instances.create(), closure);  }  public boolean isMutable() throws ModelException {    return instances.isMutable();  }  /**   * Returns the node factory for this model   */  public NodeFactory getNodeFactory() throws ModelException {    return nodeFactory;  }  public String toString() {        try {      return "[RDFSchemaModel " + getURI() + "]";    } catch (ModelException exc) {      return "[RDFSchemaModel: " + exc + "]";    }  }  public static Model computeRDFSClosure(Model src) throws ModelException {    Model closure = computeClosure(src, RDFS.subClassOf);    SetOperations.unite(closure, computeClosure(src, RDFS.subPropertyOf));    return closure;  }  /**   * Compute a transitive closure, disallow loops.   */  public static Model computeClosure(Model src, Resource property) throws ModelException {    return computeClosure(src, property, false);  }  /**   * Computes a transitive closure on a given predicate. If <tt>allowLoops</tt> is set to false, an exception is thrown   * if a loop is encountered.   */  public static Model computeClosure(Model src, Resource property, boolean allowLoops) throws ModelException {    Model closure = src.create();    // find all roots    Model all = src.find(null, property, null);    //          System.out.println("Found " + all.size() + " triples containing " + property);    // compute closure

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91性感美女视频| 国产又黄又大久久| 91国偷自产一区二区使用方法| 国产精品午夜在线观看| 99国产精品视频免费观看| 中文av一区二区| 91电影在线观看| 手机精品视频在线观看| 日韩精品一区二| 岛国av在线一区| 亚洲一区二区视频在线| 日韩视频一区二区三区在线播放| 国产真实乱偷精品视频免| 国产亚洲成aⅴ人片在线观看| 成人免费看黄yyy456| 亚洲第一精品在线| 欧美精品一区二区不卡| 波多野结衣在线aⅴ中文字幕不卡| 亚洲欧美日韩在线| 欧美成人一区二区三区| 成人午夜视频免费看| 无码av免费一区二区三区试看 | 99久久久无码国产精品| 亚洲国产中文字幕| 精品国产一区二区三区av性色| 国产成人在线网站| 午夜精品久久久久| 欧美韩日一区二区三区四区| 欧美视频一区二区| 成人性视频免费网站| 亚洲五月六月丁香激情| 国产午夜一区二区三区| 欧美图片一区二区三区| 国产成人亚洲综合a∨婷婷| 亚洲不卡一区二区三区| 国产精品日日摸夜夜摸av| 欧美精品色综合| 91视频免费看| 国产成人啪免费观看软件| 日韩电影免费在线看| 亚洲三级免费观看| 欧美v亚洲v综合ⅴ国产v| 色婷婷亚洲一区二区三区| 国产一区在线视频| 日韩va亚洲va欧美va久久| 综合久久久久综合| 国产欧美一区二区精品婷婷| 91 com成人网| 欧美日韩一级视频| 91色婷婷久久久久合中文| 国产老肥熟一区二区三区| 免费观看久久久4p| 成人午夜在线免费| 韩国理伦片一区二区三区在线播放| 亚洲一卡二卡三卡四卡五卡| 中文字幕欧美日韩一区| 精品成人免费观看| 日韩一区二区三区三四区视频在线观看| 日本精品一区二区三区高清| 成人亚洲一区二区一| 国产精品一区二区久久不卡| 日本不卡视频一二三区| 一区二区三区在线影院| 中文字幕视频一区| 国产欧美日韩在线| 国产女人18水真多18精品一级做| 精品成人在线观看| 精品福利一区二区三区| 精品久久久网站| 精品人在线二区三区| 欧美xxxxx牲另类人与| 国产一区在线观看视频| 天堂一区二区在线| 亚洲成在线观看| 天堂成人免费av电影一区| 亚洲在线中文字幕| 亚洲mv大片欧洲mv大片精品| 五月天一区二区三区| 午夜精品福利在线| 美女视频网站黄色亚洲| 久久疯狂做爰流白浆xx| 国产酒店精品激情| 高清不卡一区二区| av激情综合网| 欧美写真视频网站| 在线综合+亚洲+欧美中文字幕| 3d动漫精品啪啪一区二区竹菊| 91精品国产麻豆| 精品日韩一区二区三区| 久久五月婷婷丁香社区| 国产精品国产成人国产三级| 日韩久久一区二区| 亚洲成av人片在线观看无码| 毛片基地黄久久久久久天堂| 精品制服美女久久| 国产91精品欧美| 99国内精品久久| 51精品国自产在线| 久久久久久9999| 中文字幕一区二| 午夜精品123| 韩国成人福利片在线播放| 成人美女视频在线观看18| 色综合天天天天做夜夜夜夜做| 欧美群妇大交群的观看方式| 日韩精品一区二区三区中文精品| 欧美激情在线一区二区三区| 亚洲色图视频网| 日本不卡视频在线| 成人av午夜电影| 欧美日本一区二区三区| 国产午夜精品理论片a级大结局| 亚洲精品一二三| 理论片日本一区| 91麻豆免费视频| 精品日韩一区二区三区免费视频| 中文字幕一区二区三区精华液| 五月激情六月综合| 成人av在线一区二区三区| 欧美日韩视频第一区| 国产欧美日韩激情| 日韩中文欧美在线| jlzzjlzz欧美大全| 欧美大片在线观看一区| 亚洲蜜臀av乱码久久精品| 久久国产福利国产秒拍| 日本电影欧美片| 亚洲国产精品传媒在线观看| 视频一区中文字幕| 99久久精品久久久久久清纯| 精品美女一区二区| 一区二区三区精品视频在线| 国产成人精品在线看| 日韩小视频在线观看专区| 亚洲精品久久久久久国产精华液| 国产一区 二区| 91精品国产麻豆国产自产在线 | 欧美激情在线一区二区三区| 日韩国产欧美在线播放| www.成人在线| 国产午夜精品一区二区三区四区| 亚洲v日本v欧美v久久精品| 99久久免费国产| 欧美国产日产图区| 国产精品亚洲成人| 精品国产一区二区国模嫣然| 免费在线视频一区| 欧美伦理视频网站| 亚洲国产视频一区二区| 在线视频观看一区| 亚洲欧美日韩成人高清在线一区| 国产99久久久国产精品潘金网站| 日韩精品一区二区三区中文精品| 舔着乳尖日韩一区| 欧美人xxxx| 亚洲大型综合色站| 欧美天堂一区二区三区| 一区二区三区精品视频在线| 色综合久久综合| 亚洲黄色av一区| 色噜噜狠狠成人中文综合| 亚洲日本在线天堂| 色综合天天视频在线观看| 最新热久久免费视频| 99久精品国产| 亚洲另类色综合网站| 色婷婷av一区二区三区gif | av一区二区三区| 中文字幕人成不卡一区| 97久久人人超碰| 亚洲精选视频免费看| 欧美主播一区二区三区美女| 亚洲1区2区3区视频| 欧美精品18+| 寂寞少妇一区二区三区| 久久免费视频色| 波多野结衣一区二区三区 | 夜色激情一区二区| 欧美亚洲愉拍一区二区| 日韩成人精品视频| 日韩欧美国产一区在线观看| 国产一区二区三区在线看麻豆| 国产日韩欧美麻豆| 99国产精品久久久久久久久久久| 亚洲男人都懂的| 91麻豆精品国产91久久久更新时间| 日日摸夜夜添夜夜添亚洲女人| 制服丝袜亚洲播放| 国产精品一区二区无线| 国产精品久久福利| 欧美日韩综合在线| 毛片av中文字幕一区二区| 国产欧美日韩亚州综合| 91色视频在线| 免费观看91视频大全| 国产精品久久久久久久裸模| 欧美日韩久久久| 国产一区不卡在线| 一区二区三区四区在线免费观看| 91精品国产高清一区二区三区 |