91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 230KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-25
  • 語言: 其他
  • 標(biāo)簽: SemanticWeb??

資源簡(jiǎn)介

《Web3.0與SemanticWeb編程》配套源代碼 《Web3.0與SemanticWeb編程》配套代碼

資源截圖

代碼片段和文件信息

package?net.semwebprogramming.chapter12;

import?edu.uga.cs.lsdis.sawsdl.util.SAWSDLUtility;
import?edu.uga.cs.lsdis.sawsdl.*;

import?javax.xml.namespace.QName;
import?java.io.File;
import?java.util.Map;
import?java.util.List;


public?class?SAWSDLExample?{
?
????public?static?void?main(String[]?args)?throws?Exception{
????????if?(args.length?>1?||?args.length?<1){
????????????System.out.println(“Need?file?name“);
????????????return;
????????}
????????
????????System.setProperty(“javax.wsdl.factory.WSDLFactory“
????????????????“edu.uga.cs.lsdis.sawsdl.impl.factory.WSDLFactoryImpl“);

????????File?wsdlURI?=?new?File(args[0]);
????????Definition?definition?=?SAWSDLUtility.getDefinitionFromFile(wsdlURI);

????????assert(definition!=null);
????????System.out.println(“Definition?created?Successfully!“);
?
????????Map?portTypes?=?definition.getPortTypes();
????????for?(object?key:portTypes.keySet()){
????????????PortType?semanticPortType?=?definition.getSemanticPortType((QName)key);

????????????System.out.println(“Porttype?QName?->“?+?semanticPortType.getQName());
????????????System.out.println(“Model?References?->“?+?semanticPortType.getModelReferences()?);

????????????List?operations?=?semanticPortType.getOperations();

????????????for?(object?operation?:?operations)?{
????????????????System.out.println(“Operation?->“?+?((Operation)?operation).getName());
????????????}

????????}

????????Map?messages?=?definition.getMessages();
????????for?(object?key:messages.keySet()){
????????????Message?semanticMessage?=?definition.getSemanticMessage((QName)key);

????????????System.out.println(“Message?QName?->“?+?semanticMessage.getQName());

????????????Map?parts?=?semanticMessage.getParts();

????????????for?(object?partKey?:?parts.keySet())?{
????????????????Part?semanticPart?=?semanticMessage.getSemanticPart((String)?partKey);
????????????????System.out.println(“part?->“?+?semanticPart);
????????????????System.out.println(“part?model?references?->“?+?semanticPart.getModelReferences());
????????????}
????????}
????}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2009-03-20?23:31??Chapter1\
?????目錄???????????0??2009-03-21?07:50??Chapter10\
?????文件????????6148??2009-03-21?07:50??Chapter10\.DS_Store
?????目錄???????????0??2009-03-21?07:52??__MACOSX\
?????目錄???????????0??2009-03-21?07:52??__MACOSX\Chapter10\
?????文件??????????82??2009-03-21?07:50??__MACOSX\Chapter10\._.DS_Store
?????目錄???????????0??2009-03-21?07:50??Chapter10\SAWSDLExample\
?????文件?????????449??2009-02-28?21:51??Chapter10\SAWSDLExample\.classpath
?????文件????????6148??2009-03-21?07:50??Chapter10\SAWSDLExample\.DS_Store
?????目錄???????????0??2009-03-21?07:52??__MACOSX\Chapter10\SAWSDLExample\
?????文件??????????82??2009-03-21?07:50??__MACOSX\Chapter10\SAWSDLExample\._.DS_Store
?????文件?????????372??2009-02-28?21:47??Chapter10\SAWSDLExample\.project
?????目錄???????????0??2009-02-28?21:47??Chapter10\SAWSDLExample\.settings\
?????文件?????????617??2009-02-28?21:47??Chapter10\SAWSDLExample\.settings\org.eclipse.jdt.core.prefs
?????目錄???????????0??2009-02-28?21:47??Chapter10\SAWSDLExample\src\
?????目錄???????????0??2009-02-28?21:47??Chapter10\SAWSDLExample\src\net\
?????目錄???????????0??2009-02-28?21:47??Chapter10\SAWSDLExample\src\net\semwebprogramming\
?????目錄???????????0??2009-02-28?21:51??Chapter10\SAWSDLExample\src\net\semwebprogramming\chapter12\
?????文件????????2106??2009-02-28?21:53??Chapter10\SAWSDLExample\src\net\semwebprogramming\chapter12\SAWSDLExample.java
?????目錄???????????0??2009-03-21?07:50??Chapter11\
?????文件????????6148??2009-03-21?07:50??Chapter11\.DS_Store
?????目錄???????????0??2009-03-21?07:52??__MACOSX\Chapter11\
?????文件??????????82??2009-03-21?07:50??__MACOSX\Chapter11\._.DS_Store
?????目錄???????????0??2009-03-21?07:50??Chapter11\rdfa\
?????文件????????1466??2009-02-28?19:12??Chapter11\rdfa\.classpath
?????文件????????6148??2009-03-21?07:50??Chapter11\rdfa\.DS_Store
?????目錄???????????0??2009-03-21?07:52??__MACOSX\Chapter11\rdfa\
?????文件??????????82??2009-03-21?07:50??__MACOSX\Chapter11\rdfa\._.DS_Store
?????文件?????????368??2009-02-28?19:12??Chapter11\rdfa\.project
?????目錄???????????0??2009-03-20?23:31??Chapter11\rdfa\bin\
?????目錄???????????0??2009-03-20?23:31??Chapter11\rdfa\input\
............此處省略378個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源