microdata-node
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "microdata-node", | ||
"version": "0.1.3", | ||
"description": "Cheerio based microdata parser", | ||
"version": "0.1.4", | ||
"description": "Microdata to json and json-ld parser", | ||
"main": "lib", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -100,6 +100,10 @@ microdata-node | ||
`config.base`: Base url to resolve url properties against. | ||
`config.registry`: The [registry](http://www.w3.org/TR/microdata-rdf/#dfn-registry) associates a URI prefix with one or more key-value pairs denoting processor behavior. | ||
`config.useRdfType`: (default `false`) If set to true, `rdf:type` predicates won't be converted to `@type` properties. | ||
`config.strict`: (default `false`) Parse strictly according to spec. Does not try to be forgiving of malformed microdata. | ||
`config.useNativeTypes`: (default `true`) Converts literals that are numbers or booleans to their corresponding JSOn type. | ||
@@ -23,3 +23,3 @@ | ||
} else { | ||
if (n3.Util.isUri(n3Object)) { | ||
if (n3.Util.isIRI(n3Object)) { | ||
object.id = expandPrefixedName(n3Object, prefixes); | ||
@@ -45,3 +45,3 @@ } else { | ||
var parser = n3.Parser({ | ||
documentURI: base | ||
documentIRI: base | ||
}); | ||
@@ -48,0 +48,0 @@ parser.parse(turtle, function (error, triple, prefixes) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
220477
109