paris

java8 ZonedDateTime时区的使用

只谈情不闲聊 提交于 2020-01-12 19:21:39
ZonedDateTime可以创建带有时区的时间。如: ZonedDateTime.now(ZoneId.of("Europe/Paris")); //datetime,date,time ZonedDateTime paris = ZonedDateTime . now ( ZoneId . of ( "Europe/Paris" ) ) ; // 欧洲巴黎 +1 时区 ZonedDateTime shanghai = ZonedDateTime . now ( ZoneId . of ( "Asia/Shanghai" ) ) ; // 亚洲上海 +8 时区 System . out . println ( DateTimeFormatter . ISO_DATE_TIME . format ( paris ) ) ; System . out . println ( DateTimeFormatter . ISO_DATE_TIME . format ( shanghai ) ) ; //local 使用local的作用是直接按照所在zone来格式化,后面不加 +01:00[Europe/Paris] 等内容 System . out . println ( DateTimeFormatter . ISO_LOCAL_DATE_TIME . format ( paris )

Why is dbpedia-owl:wikiPageRedirects not returning the full set of redirect links? (Sparql)

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using the following query : select ?value where { <http://dbpedia.org/resource/Paris> dbpedia-owl:wikiPageRedirects* ?value } in order to retrieve the wikiPageRedirects property of Paris. Based on dbpedia Paris has more than 20 redirect links. Why am I only retrieving the first one? 回答1: Your direction was wrong. select distinct * where { ?x dbpedia-owl:wikiPageRedirects <http://dbpedia.org/resource/Paris> } 回答2: Artemis's answer is right; the "direction" in the query is wrong. It's worth explaining that a bit more, though. On the