rdf文件中的数据如下:
<Chardonnay rdf:ID="BancroftChardonnay">
<locatedIn rdf:resource="#NapaRegion" />
<hasMaker rdf:resource="#Bancroft" />
<hasSugar rdf:resource="#Dry" />
<hasFlavor rdf:resource="#Moderate" />
<hasBody rdf:resource="#Medium" />
</Chardonnay>想查BancroftChardonnay的maker是什么?为什么实用下面的查询语句得不到结果?PREFIX wine: <http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?maker
WHERE {wine:BancroftChardonnay owl:hasMaker ?maker} ;
<Chardonnay rdf:ID="BancroftChardonnay">
<locatedIn rdf:resource="#NapaRegion" />
<hasMaker rdf:resource="#Bancroft" />
<hasSugar rdf:resource="#Dry" />
<hasFlavor rdf:resource="#Moderate" />
<hasBody rdf:resource="#Medium" />
</Chardonnay>想查BancroftChardonnay的maker是什么?为什么实用下面的查询语句得不到结果?PREFIX wine: <http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?maker
WHERE {wine:BancroftChardonnay owl:hasMaker ?maker} ;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货