4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
新闻详情
jena | 易学教程
来自 : www.e-learn.cn/tag/jena 发布时间:2021-03-25
由 我的梦境 提交于 2021-01-29 08:28:40 阅读更多 关于 Strange behavior of content negotiation concerning SPARQL CONSTRUCT query 问题 When issuing a SPARQL CONSTRUCT query to a specific endpoint, Apache Jena library 3.14.0 issues an error message as follows. Endpoint returned Content Type: application/sparql-results+xml which is not a valid RDF syntax The code I wrote is as follows. QueryEngineHTTP qeh = new QueryEngineHTTP(endpointUrl, rq); qeh.setAcceptHeader(\"application/rdf+xml\"); Model m = qeh.execConstruct(); The endpoint is https://id.nlm.nih.gov/mesh/sparql . The query is as follows. CONSTRUCT {?s http://id.nlm.nih
问题In Jena there are some default ontologies like RDF, FOAF... So we can add property to resource like: resource.addProperty(FOAF.name, person.getM...易学,易学教程,编程,编程教程,编程技术,w3cschool,html,css,php,dom,javascript,jquery,xml,ajax,asp.net,w3c,mysql,sql,jquery mobile,bootstrap,python,jquery easyui,jquery ui,angularjs,json,thymeleafjena

本文链接: http://jena.immuno-online.com/view-770754.html

发布于 : 2021-03-25 阅读(0)