<p>add to your query a triple pattern like:</p>
<p>?repository a ?repositoryType</p>
<p>Cheers,<br>
</p>
<p><blockquote type="cite">El 17/04/2010 05:28, "Rob Lanphier" <<a href="mailto:robla@robla.net">robla@robla.net</a>> escribió:<br><br>Hi folks,<div><br></div><div>I'm working on a DOAP-tool, and I've hit a wall that I'm hoping someone can help me over/around. I'm trying to use SPARQL queries on DOAP. I'm trying to query for all of the repositories in a DOAP file, like so:</div>
<div><div><div>SELECT *</div><div>WHERE {</div><div> ?project rdf:type doap:Project .</div><div> ?project doap:shortname ?projectId .</div><div> ?project doap:repository ?repository .</div><div> ?repository doap:location ?location .</div>
<div> OPTIONAL { ?repository doap:browse ?browse }</div><div>}</div></div></div><div><br></div><div>That works just fine, except I don't get the repository type (e.g. "SVNRepository", "HgRepository", etc). What's the best way of getting that information via SPARQL?</div>
<div><br></div><font color="#888888"><div>Rob</div><div><br></div>
</font><br>_______________________________________________<br>
doap-interest mailing list<br>
<a href="mailto:doap-interest@lists.usefulinc.com">doap-interest@lists.usefulinc.com</a><br>
<a href="http://lists.usefulinc.com/mailman/listinfo/doap-interest" target="_blank">http://lists.usefulinc.com/mailman/listinfo/doap-interest</a><br></blockquote></p>