Here's to hoping google will index this for future generations :)<br>
<br>
---<br>
<br>
<span style="font-family: courier new,monospace;">static struct</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">{</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> raptor_feature feature;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> /* flag bits</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * 1=parserfeature</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * 2=serializer feature</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * 4=string value (else int)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * 8=xml writer feature</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> */</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> int flags;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> const char *name;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> const char *label;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">} raptor_features_list [RAPTOR_FEATURE_LAST+1]= {</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_SCANNING
, 1, "scanForRDF", "Scan for rdf:RDF in XML content" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_ASSUME_IS_RDF
, 1, "assumeIsRDF", "Assume content is RDF/XML, don't require rdf:RDF"
},</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_ALLOW_NON_NS_ATTRIBUTES , 1, "allowNonNsAttributes",
"Allow bare 'name' rather than namespaced 'rdf:name'" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> { RAPTOR_FEATURE_ALLOW_OTHER_PARSETYPES , 1, "allowOtherParsetypes", "Allow user-defined rdf:parseType values" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_ALLOW_BAGID
, 1, "allowBagID", "Allow rdf:bagID" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_ALLOW_RDF_TYPE_RDF_LIST , 1, "allowRDFtypeRDFlist",
"Generate the collection rdf:type rdf:List triple" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_NORMALIZE_LANGUAGE , 1,
"normalizeLanguage", "Normalize xml:lang values to lowercase" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_NON_NFC_FATAL
, 1, "nonNFCfatal", "Make non-NFC literals cause a fatal error" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_WARN_OTHER_PARSETYPES , 1,
"warnOtherParseTypes", "Warn about unknown rdf:parseType values" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_CHECK_RDF_ID
, 1, "checkRdfID", "Check rdf:ID values for duplicates" },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_RELATIVE_URIS
, 2, "relativeURIs", "Write relative URIs wherever possible in
serializing." },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_START_URI
, 6, "startURI", "Start URI for serializing to use." },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> { RAPTOR_FEATURE_WRITER_AUTO_INDENT , 8, "autoIndent", "Automatically indent elements." },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> {
RAPTOR_FEATURE_WRITER_AUTO_EMPTY ,
8, "autoEmpty", "Automatically detect and abbreviate empty elements." },</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> { RAPTOR_FEATURE_WRITER_INDENT_WIDTH , 8, "indentWidth", "Number of spaces to indent." }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">};</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">static const char *raptor_feature_uri_prefix="<a href="http://feature.librdf.org/raptor-">http://feature.librdf.org/raptor-</a>";</span><br style="font-family: courier new,monospace;">
<br>
<br>
Cheers!<br><br><div><span class="gmail_quote">On 7/17/05, <b class="gmail_sendername">Boris Popov</b> <<a href="mailto:bpopov@gmail.com">bpopov@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Are they documented somewhere? Again, there's a TODO entry for "Docs: it was hard to find the legal (parser) feature URIs in
the documentation, or what values to use" and I'm kind of stuck without it. Any pointers would be appreciated!<br>
<br>
Thanks!<br><br>-- <br><span class="sg">- Boris
</span></blockquote></div><br><br><br>-- <br>- Boris