我开始使用triplestores和RDF来存储图像元数据,但我无法理解如何将整数值放入RDF / XML。
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:exif="http://penkov.me/exif/">
<rdf:Description rdf:about="http://penkov.me/images/0">
<exif:SourceFile>./205CANON/_MG_0538.CR2</exif:SourceFile>
<exif:Make>Canon</exif:Make>
<exif:FocalLength>50</exif:FocalLength>
</rdf:Description>
</rdf:RDF>
我猜50
标记中的<exif:FocalLength>
将被三元组视为字符串,并且无法对此值进行范围查询。
答案 0 :(得分:5)
容易(但冗长):
<exif:FocalLength rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">50</exif:FocalLength>