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

📄 createuniqueuris.java

📁 好东西啊!你看看就知道了
💻 JAVA
字号:
package org.w3c.rdf.examples;import org.xml.sax.SAXException;import org.w3c.rdf.model.*;import org.w3c.rdf.util.*;/** * A simple demo program that create a unique URI. An optional argument is the number of * unique URIs to create. */public class CreateUniqueURIs {//   static void bailOut() {//       System.err.println("Usage: ParseAndSerialize [-triples | -xml] <fileNameOrURL>\n" + // 			 "If no option is specified both triples and XML is displayed.");//       System.exit(1);//   }  public static void main(String[] args) throws Exception {    int num = 1;    if(args.length == 1) {      num = Integer.parseInt(args[0]);    }    NodeFactory f = new RDFFactoryImpl().createModel().getNodeFactory();    for(int i=0; i < num; i++) {      System.out.println("" + f.createUniqueResource());    }  }}

⌨️ 快捷键说明

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