-
Notifications
You must be signed in to change notification settings - Fork 3
/
rdf.min.js
1 lines (1 loc) · 44.3 KB
/
rdf.min.js
1
rdf=(function(){var b={};b.encodeString=function(m){var e="",l=false,h=0,g=m.length;while(h<g){var f=h++;if(!l){var c=m.charCodeAt(f);if(55296<=c&&c<=56319){var j=m.charCodeAt(f+1);c=(c-55296)*1024+(j-56320)+65536;l=true}if(c>1114111){throw new Error("Char out of range")}var d="00000000".concat((new Number(c)).toString(16).toUpperCase());if(c>=65536){e+="\\U"+d.slice(-8)}else{if(c>=127||c<=31){switch(c){case 9:e+="\\t";break;case 10:e+="\\n";break;case 13:e+="\\r";break;default:e+="\\u"+d.slice(-4);break}}else{switch(c){case 34:e+='\\"';break;case 92:e+="\\\\";break;default:e+=m.charAt(f);break}}}}else{l=!l}}return e};b.BlankNode=function(){return Object.defineProperties({},{interfaceName:{writable:false,configurable:false,enumerable:true,value:"BlankNode"},nominalValue:{writable:false,configurable:false,enumerable:true,value:"b".concat(++b.BlankNode.NEXTID)},valueOf:{writable:false,configurable:false,enumerable:true,value:function(){return this.nominalValue}},equals:{writable:true,configurable:false,enumerable:true,value:function(c){if(!c.hasOwnProperty("interfaceName")){return this.nominalValue==c}return(c.interfaceName==this.interfaceName)?this.nominalValue==c.nominalValue:false}},toString:{writable:false,configurable:false,enumerable:true,value:function(){return"_:".concat(this.nominalValue)}},toNT:{writable:false,configurable:false,enumerable:true,value:function(){return b.encodeString(this.toString())}},h:{configurable:false,enumerable:false,get:function(){return this.nominalValue}},})};b.BlankNode.NEXTID=0;b.NamedNode=function(c){return Object.defineProperties({},{interfaceName:{writable:false,configurable:false,enumerable:true,value:"NamedNode"},nominalValue:{writable:false,configurable:false,enumerable:true,value:c},valueOf:{writable:false,configurable:false,enumerable:true,value:function(){return this.nominalValue}},equals:{writable:true,configurable:false,enumerable:true,value:function(d){if(!d.hasOwnProperty("interfaceName")){return this.nominalValue==d}return(d.interfaceName==this.interfaceName)?this.nominalValue==d.nominalValue:false}},toString:{writable:false,configurable:false,enumerable:true,value:function(){return this.nominalValue.toString()}},toNT:{writable:false,configurable:false,enumerable:true,value:function(){return"<"+b.encodeString(this.toString())+">"}},h:{configurable:false,enumerable:false,get:function(){return this.nominalValue}}})};b.Literal=function(e,f,c,d){if(typeof f=="string"&&f[0]=="@"){f=f.slice(1)}return Object.defineProperties({},{interfaceName:{writable:false,configurable:false,enumerable:true,value:"Literal"},nominalValue:{writable:false,configurable:false,enumerable:true,value:e},valueOf:{writable:false,configurable:false,enumerable:true,value:function(){return d===null?this.nominalValue:d}},language:{writable:false,configurable:false,enumerable:true,value:f},datatype:{writable:false,configurable:false,enumerable:true,value:c},equals:{writable:true,configurable:false,enumerable:true,value:function(g){if(!g.hasOwnProperty("interfaceName")){return this.valueOf()==g}if(g.interfaceName!=this.interfaceName){return false}return this.h==g.h}},toString:{writable:false,configurable:false,enumerable:true,value:function(){return this.nominalValue.toString()}},toNT:{writable:false,configurable:false,enumerable:true,value:function(){var g='"'+b.encodeString(this.nominalValue)+'"';if(Boolean(this.language).valueOf()){return g.concat("@"+this.language)}if(Boolean(this.datatype).valueOf()){return g.concat("^^"+this.datatype.toNT())}return g}},h:{writable:false,configurable:false,enumerable:false,value:f+"|"+(c?c.toString():"")+"|"+e.toString()}})};b.Triple=function(c,d,e){return Object.defineProperties({},{subject:{writable:false,configurable:false,enumerable:true,value:c},property:{writable:false,configurable:false,enumerable:true,value:d},object:{writable:false,configurable:false,enumerable:true,value:e},equals:{writable:true,configurable:false,enumerable:true,value:function(f){return this.s.equals(f.s)&&this.p.equals(f.p)&&this.o.equals(f.o)}},toString:{writable:false,configurable:false,enumerable:true,value:function(){return this.s.toNT()+" "+this.p.toNT()+" "+this.o.toNT()+" ."}},s:{configurable:false,enumerable:false,get:function(){return this.subject}},p:{configurable:false,enumerable:false,get:function(){return this.property}},o:{configurable:false,enumerable:false,get:function(){return this.object}}})};b.Graph=function(c){return Object.defineProperties({},{_graph:{writable:true,configurable:false,enumerable:false,value:[]},_spo:{writable:true,configurable:false,enumerable:false,value:{}},length:{configurable:false,enumerable:true,get:function(){return this._graph.length}},add:{writable:false,configurable:false,enumerable:true,value:function(d){this._spo[d.s.h]||(this._spo[d.s.h]={});this._spo[d.s.h][d.p.h]||(this._spo[d.s.h][d.p.h]={});if(!this._spo[d.s.h][d.p.h][d.o.h]){this._spo[d.s.h][d.p.h][d.o.h]=d;this._graph.push(d);this.actions.forEach(function(e){e.run(d)})}return this}},addArray:{writable:false,configurable:false,enumerable:false,value:function(e){if(Array.isArray(e)){var f=this,d=e.forEach(function(g){f.add(g)})}return this}},remove:{writable:false,configurable:false,enumerable:true,value:function(d){this._spo[d.s.h]&&this._spo[d.s.h][d.p.h]&&this._spo[d.s.h][d.p.h][d.o.h]&&(delete this._spo[d.s.h][d.p.h][d.o.h]&&this._graph.splice(this._graph.indexOf(d),1));return this}},removeMatches:{writable:false,configurable:false,enumerable:true,value:function(d,f,g){d=arguments[0]===undefined?null:d;f=arguments[1]===undefined?null:f;g=arguments[2]===undefined?null:g;var e=[];this.forEach(function(h,j){(d===null||h.s.equals(d))&&(f===null||h.p.equals(f))&&(g===null||h.o.equals(g))&&e.push(h)});for(i in e){this.remove(e[i])}return this}},toArray:{writable:false,configurable:false,enumerable:true,value:function(){return this._graph.slice(0)}},some:{writable:false,configurable:false,enumerable:true,value:function(d){return this._graph.some(d)}},every:{writable:false,configurable:false,enumerable:true,value:function(d){return this._graph.every(d)}},filter:{writable:false,configurable:false,enumerable:true,value:function(d){return new b.Graph(this._graph.filter(d))}},forEach:{writable:false,configurable:false,enumerable:true,value:function(d){var e=this;this._graph.forEach(function(f){d(f,e)})}},match:{writable:false,configurable:false,enumerable:true,value:function(e,f,g,d){e=arguments[0]===undefined?null:e;f=arguments[1]===undefined?null:f;g=arguments[2]===undefined?null:g;d=arguments[3]===undefined?null:d;var h=0;if(d<1){d=-1}return new b.Graph(this._graph.filter(function(j){if(h==d){return false}return(e===null||j.s.equals(e))&&(f===null||j.p.equals(f))&&(g===null||j.o.equals(g))&&++h}))}},merge:{writable:false,configurable:false,enumerable:true,value:function(d){return new b.Graph().addAll(this).addAll(d)}},addAll:{writable:false,configurable:false,enumerable:true,value:function(d){return this.addArray(d.toArray())}},actions:{writable:false,configurable:false,enumerable:true,value:[]},addAction:{writable:false,configurable:false,enumerable:true,value:function(d,e){if(e){this.forEach(function(f,h){d.run(f,h)})}this.actions.push(d);return this}}}).addArray(c)};b.TripleAction=function(d,c){return Object.defineProperties({},{action:{writable:true,configurable:false,enumerable:true,value:c},test:{writable:true,configurable:false,enumerable:true,value:d},run:{writable:false,configurable:false,enumerable:true,value:function(e,f){if(this.test(e)){this.action(e,f)}}}})};b.PrefixMap=function(c){return Object.defineProperties({},{resolve:{writable:false,configurable:false,enumerable:true,value:function(e){var d=e.indexOf(":");if(d<0||e.indexOf("//")>=0){return null}var f=e.slice(0,d).toLowerCase();if(!this[f]){return null}return this[f].concat(e.slice(++d))}},shrink:{writable:false,configurable:false,enumerable:true,value:function(d){for(pref in this){if(d.substr(0,this[pref].length)==this[pref]){return pref+":"+d.slice(this[pref].length)}}return d}},setDefault:{writable:false,configurable:false,enumerable:true,value:function(d){this[""]=d}},addAll:{writable:false,configurable:false,enumerable:true,value:function(e,d){for(p in e){if(!this[p]||d){this[p]=e[p]}}return this}}}).addAll(c)};b.TermMap=function(c){return Object.defineProperties({},{resolve:{writable:false,configurable:false,enumerable:true,value:function(d){if(this[d]){return this[d]}if(this[""]){return this[""].concat(d)}return null}},shrink:{writable:false,configurable:false,enumerable:true,value:function(d){for(t in this){if(this[t]==d){return t}}return d}},setDefault:{writable:false,configurable:false,enumerable:true,value:function(d){this[""]=d}},addAll:{writable:false,configurable:false,enumerable:true,value:function(e,d){for(t in e){if(!this[t]||d){this[t]=e[t]}}return this}}}).addAll(c)};b.Profile=function(c){return Object.defineProperties({},{prefixes:{writable:false,configurable:false,enumerable:true,value:new b.PrefixMap},terms:{writable:false,configurable:false,enumerable:true,value:new b.TermMap},resolve:{writable:false,configurable:false,enumerable:true,value:function(d){return d.indexOf(":")>=0?this.prefixes.resolve(d):this.terms.resolve(d)}},setDefaultVocabulary:{writable:false,configurable:false,enumerable:true,value:function(d){this.terms.setDefault(d)}},setDefaultPrefix:{writable:false,configurable:false,enumerable:true,value:function(d){this.prefixes.setDefault(d)}},setTerm:{writable:false,configurable:false,enumerable:true,value:function(d,e){this.terms[d]=e}},setPrefix:{writable:false,configurable:false,enumerable:true,value:function(d,e){this.prefixes[d]=e}},importProfile:{writable:false,configurable:false,enumerable:true,value:function(e,d){if(!e){return this}this.prefixes.addAll(e.prefixes,d);this.terms.addAll(e.terms,d);return this}}}).importProfile(c)};b.RDFEnvironment=function(){var d={terms:{},prefixes:{owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdfa:"http://www.w3.org/ns/rdfa#",xhv:"http://www.w3.org/1999/xhtml/vocab#",xml:"http://www.w3.org/XML/1998/namespace",xsd:"http://www.w3.org/2001/XMLSchema#",}};var c={};for(v in x=["string","boolean","dateTime","date","time","int","double","float","decimal","integer","nonPositiveInteger","negativeInteger","long","int","short","byte","nonNegativeInteger","unsignedLong","unsignedInt","unsignedShort","unsignedByte","positiveInteger"]){c[x[v]]=d.prefixes.xsd.concat(x[v])}return Object.defineProperties(new b.Profile(d),{createBlankNode:{writable:false,configurable:false,enumerable:true,value:function(){return new b.BlankNode}},createNamedNode:{writable:false,configurable:false,enumerable:true,value:function(e){return new b.NamedNode(e)}},createLiteral:{writable:false,configurable:false,enumerable:true,value:function(h){var e=null,g=arguments[2],f=h;if(arguments[1]){if(arguments[1].hasOwnProperty("interfaceName")){g=arguments[1]}else{e=arguments[1]}}if(g){switch(g.valueOf()){case c.string:f=new String(f);break;case c["boolean"]:f=(new Boolean(f=="false"?false:f)).valueOf();break;case c["float"]:case c.integer:case c["long"]:case c["double"]:case c.decimal:case c.nonPositiveInteger:case c.nonNegativeInteger:case c.negativeInteger:case c["int"]:case c.unsignedLong:case c.positiveInteger:case c["short"]:case c.unsignedInt:case c["byte"]:case c.unsignedShort:case c.unsignedByte:f=(new Number(f)).valueOf();break;case c.date:case c.time:case c.dateTime:f=new Date(f);break}}return new b.Literal(h,e,g,f)}},createTriple:{writable:false,configurable:false,enumerable:true,value:function(e,f,g){return new b.Triple(e,f,g)}},createGraph:{writable:false,configurable:false,enumerable:true,value:function(e){return new b.Graph(e)}},createAction:{writable:false,configurable:false,enumerable:true,value:function(f,e){return new b.TripleAction(f,e)}},createProfile:{writable:false,configurable:false,enumerable:true,value:function(e){return new b.Profile(!e?this:null)}},createTermMap:{writable:false,configurable:false,enumerable:true,value:function(e){return new b.TermMap(!e?this.terms:null)}},createPrefixMap:{writable:false,configurable:false,enumerable:true,value:function(e){return new b.PrefixMap(!e?this.prefixes:null)}},})};var a=new b.RDFEnvironment;Object.keys(b).forEach(function(c){a[c]=b[c]});return b=a})();if(module){module.exports=rdf}(function(a){a.Hash=function(b){this.empty()};a.Hash.prototype={h:null,get:function(b){return this.h[b]},set:function(c,b){this.h[c]=b},empty:function(){this.h={}},exists:function(b){return this.h.hasOwnProperty(b)},keys:function(d){var c=[];d=!d;for(var b in this.h){if(d&&Object.prototype[b]){continue}c.push(b)}return c},remove:function(b){var c=this.get(b);delete this.h[b];return c},toArray:function(){var b=new Array,c=this;this.keys().forEach(function(d){b.push(c.get(d))});return b},toString:function(){return JSON.stringify(this.h)}}})(rdf);(function(a){a.IRI=function(c){var b=new RegExp("^[a-z0-9-.+]+:","i");return Object.defineProperties({},{value:{writable:false,configurable:false,enumerable:false,value:c},toString:{writable:false,configurable:false,enumerable:true,value:function(){return this.value}},defrag:{writable:false,configurable:false,enumerable:true,value:function(){var d=this.value.indexOf("#");return(d<0)?this:new a.IRI(this.value.slice(0,d))}},isAbsolute:{writable:false,configurable:false,enumerable:true,value:function(){return this.scheme()!=null&&this.heirpart()!=null&&this.fragment()==null}},toAbsolute:{writable:false,configurable:false,enumerable:true,value:function(){if(this.scheme()==null&&this.heirpart()==null){throw new Error("IRI must have a scheme and a heirpart!")}return this.resolveReference(this.value).defrag()}},authority:{writable:false,configurable:false,enumerable:true,value:function(){var d=this.heirpart();if(d.substring(0,2)!="//"){return null}var f=d.slice(2);var e=f.indexOf("/");return e>=0?f.substring(0,e):f}},fragment:{writable:false,configurable:false,enumerable:true,value:function(){var d=this.value.indexOf("#");return(d<0)?null:this.value.slice(d)}},heirpart:{writable:false,configurable:false,enumerable:true,value:function(){var d=this.value;var e=d.indexOf("?");if(e>=0){d=d.substring(0,e)}else{e=d.indexOf("#");if(e>=0){d=d.substring(0,e)}}var f=this.scheme();if(f!=null){d=d.slice(1+f.length)}return d}},host:{writable:false,configurable:false,enumerable:true,value:function(){var d=this.authority();var e=d.indexOf("@");if(e>=0){d=d.slice(++e)}if(d.indexOf("[")==0){e=d.indexOf("]");if(e>0){return d.substring(0,e)}}e=d.lastIndexOf(":");return e>=0?d.substring(0,e):d}},path:{writable:false,configurable:false,enumerable:true,value:function(){var d=this.authority();if(d==null){return this.heirpart()}return this.heirpart().slice(d.length+2)}},port:{writable:true,configurable:false,enumerable:true,value:function(){var d=this.authority();var e=d.indexOf("@");if(e>=0){d=d.slice(++e)}if(d.indexOf("[")==0){e=d.indexOf("]");if(e>0){return d.substring(0,e)}}e=d.lastIndexOf(":");if(e<0){return null}d=d.slice(++e);return d.length==0?null:d}},query:{writable:false,configurable:false,enumerable:true,value:function(){var e=this.value.indexOf("?");if(e<0){return null}var d=this.value.indexOf("#");if(d<0){return this.value.slice(e)}return this.value.substring(e,d)}},removeDotSegments:{writable:false,configurable:false,enumerable:true,value:function(e){var d="";var f=0;while(e.length>0){if(e.substr(0,3)=="../"||e.substr(0,2)=="./"){e=e.slice(e.indexOf("/"))}else{if(e=="/."){e="/"}else{if(e.substr(0,3)=="/./"){e=e.slice(2)}else{if(e.substr(0,4)=="/../"||e=="/.."){(e=="/..")?e="/":e=e.slice(3);f=d.lastIndexOf("/");(f>=0)?d=d.substring(0,f):d=""}else{if(e.substr(0,2)==".."||e.substr(0,1)=="."){e=e.slice(e.indexOf("."));f=e.indexOf(".");if(f>=0){e=e.slice(f)}}else{if(e.substr(0,1)=="/"){d+="/";e=e.slice(1)}f=e.indexOf("/");if(f<0){d+=e;e=""}else{d+=e.substring(0,f);e=e.slice(f)}}}}}}}return d}},resolveReference:{writable:false,configurable:false,enumerable:true,value:function(f){var d=new a.IRI(f.toString()),e={scheme:"",authority:"",path:"",query:"",fragment:""},g="";if(d.scheme()!=null){e.scheme=d.scheme();g=d.authority();e.authority+=g!=null?"//"+g:"";e.path=this.removeDotSegments(d.path());g=d.query();e.query+=g!=null?g:""}else{g=d.authority();if(g!=null){e.authority=g!=null?"//"+g:"";e.path=this.removeDotSegments(d.path());g=d.query();e.query+=g!=null?g:""}else{g=d.path();if(g==""||g==null){e.path=this.path();g=d.query();if(g!=null){e.query+=g}else{g=this.query();e.query+=g!=null?g:""}}else{if(g.substring(0,1)=="/"){e.path=this.removeDotSegments(g)}else{if(this.path()!=null){var h=this.path().lastIndexOf("/");if(h>=0){e.path=this.path().substring(0,++h)}e.path+=d.path()}else{e.path="/"+g}e.path=this.removeDotSegments(e.path)}g=d.query();e.query+=g!=null?g:""}g=this.authority();e.authority=g!=null?"//"+g:""}e.scheme=this.scheme()}g=d.fragment();e.fragment=g!=null?g:"";return new a.IRI(e.scheme+":"+e.authority+e.path+e.query+e.fragment)}},scheme:{writable:false,configurable:false,enumerable:true,value:function(){var d=this.value.match(b);return(d==null)?null:d.shift().slice(0,-1)}},userinfo:{writable:false,configurable:false,enumerable:true,value:function(){var e=this.authority();var d=e.indexOf("@");return(d<0)?null:e.substring(0,d)}}})};a.createIRI=function(b){return new a.IRI(b)}})(rdf);(function(a){if(!a.parsers){a.parsers={}}a.parsers.u8=new RegExp("\\\\U([A-F0-9]{8})","g");a.parsers.u4=new RegExp("\\\\u([A-F0-9]{4})","g");a.parsers.hexToChar=function(c){var b="";var d=parseInt(c,16);if(d<=65535){b+=String.fromCharCode(d)}else{if(d<=1114111){d-=65536;b+=String.fromCharCode(55296+(d>>10),56320+(d&1023))}else{throw new Error("code point isn't known: "+d)}}return b};a.parsers.decodeString=function(b){b=b.replace(a.parsers.u8,function(c,d){return a.parsers.hexToChar(d)});b=b.replace(a.parsers.u4,function(c,d){return a.parsers.hexToChar(d)});b=b.replace(new RegExp("\\\\t","g"),"\t");b=b.replace(new RegExp("\\\\n","g"),"\n");b=b.replace(new RegExp("\\\\r","g"),"\r");b=b.replace(new RegExp('\\\\"',"g"),'"');b=b.replace(new RegExp("\\\\\\\\","g"),"\\");return b};a.parsers.NTriples=function(b){this.context=b;this.bnHash=new a.Hash};a.parsers.NTriples.isComment=new RegExp("^[ \t]*#","");a.parsers.NTriples.isEmptyLine=new RegExp("^[ \t]*$","");a.parsers.NTriples.initialWhitespace=new RegExp("^[ \t]+","");a.parsers.NTriples.trailingWhitespace=new RegExp("[. \t]+$","");a.parsers.NTriples.whitespace=new RegExp("[ \t]+","");a.parsers.NTriples.objectMatcher=new RegExp("^([^ \t]+)[ \t]+([^ \t]+)[ \t]+(.*)$","");a.parsers.NTriples.trailingLanguage=new RegExp("@([a-z]+[-a-z0-9]+)$","");a.parsers.NTriples.typedLiteralMatcher=new RegExp('^"(.*)"(.{2})<([^>]+)>$',"");a.parsers.NTriples.eolMatcher=new RegExp("\r\n|\n|\r","g");a.parsers.NTriples.prototype={context:null,quick:null,bnHash:null,graph:null,filter:null,processor:null,base:null,parse:function(f,b,e,c,d){this.graph=d==null?this.context.createGraph():d;this.filter=c;this.quick=false;this.base=e;this.internalParse(f);if(b!=null){b(this.graph)}return true},process:function(e,c,d,b){this.processor=c;this.filter=b;this.quick=true;this.base=d;return this.internalParse(e)},getBlankNode:function(c){if(this.bnHash.exists(c)){return this.bnHash.get(c)}var b=this.context.createBlankNode();this.bnHash.set(c,b);return b},internalParse:function(e){var d=new String(e);var b=d.split(a.parsers.NTriples.eolMatcher);var c=this;b.forEach(function(g,f,h){c.readLine(g,f,h)});return true},negotiateLiteral:function(b){if(b.slice(-1)=='"'){return this.context.createLiteral(a.parsers.decodeString(b.slice(1,-1)))}var d=b.match(a.parsers.NTriples.trailingLanguage);if(d!=null){return this.context.createLiteral(a.parsers.decodeString(b.slice(1,-1-d.shift().length)),d.pop())}var c=b.match(a.parsers.NTriples.typedLiteralMatcher);return this.context.createLiteral(a.parsers.decodeString(c[1]),a.createNamedNode(c.pop()))},readLine:function(l,e,f){if(a.parsers.NTriples.isComment.test(l)||a.parsers.NTriples.isEmptyLine.test(l)){return}l=l.replace(a.parsers.NTriples.initialWhitespace,"").replace(a.parsers.NTriples.trailingWhitespace,"");var d=l.split(a.parsers.NTriples.whitespace,2);d.push(l.replace(a.parsers.NTriples.objectMatcher,"$3"));var j;if(d[0].charAt(0)=="<"){j=this.context.createNamedNode(a.parsers.decodeString(d[0].slice(1,-1)))}else{j=this.getBlankNode(d[0].slice(2))}d.shift();var b=this.context.createNamedNode(d.shift().slice(1,-1));var c;switch(d[0].charAt(0)){case"<":c=this.context.createNamedNode(a.parsers.decodeString(d[0].slice(1,-1)));break;case"_":c=this.getBlankNode(d[0].slice(2));break;default:c=this.negotiateLiteral(d[0]);break}var h=this.context.createTriple(j,b,c);var g=true;if(this.filter!=null){g=this.filter(h,null,null)}if(!g){return}this.quick?this.processor(h):this.graph.add(h)}};a.parsers.Turtle=function(b){this.context=b;this.bnHash=new a.Hash};a.parsers.Turtle.isWhitespace=new RegExp("^[ \t\r\n#]+","");a.parsers.Turtle.initialWhitespace=new RegExp("^[ \t\r\n]+","");a.parsers.Turtle.initialComment=new RegExp("^#[^\r\n]*","");a.parsers.Turtle.simpleToken=new RegExp("^[^ \t\r\n]+","");a.parsers.Turtle.simpleObjectToken=new RegExp("^[^ \t\r\n;,]+","");a.parsers.Turtle.tokenInteger=new RegExp("^(-|\\+)?[0-9]+$","");a.parsers.Turtle.tokenDouble=new RegExp("^(-|\\+)?(([0-9]+\\.[0-9]*[eE]{1}(-|\\+)?[0-9]+)|(\\.[0-9]+[eE]{1}(-|\\+)?[0-9]+)|([0-9]+[eE]{1}(-|\\+)?[0-9]+))$","");a.parsers.Turtle.tokenDecimal=new RegExp("^(-|\\+)?[0-9]*\\.[0-9]+?$","");a.parsers.Turtle.prototype={bnHash:null,context:null,filter:null,processor:null,quick:null,graph:null,base:null,parse:function(f,b,e,c,d){this.graph=d==null?this.context.createGraph():d;this.filter=c;this.quick=false;this.base=e;this.parseStatements(new String(f));if(b!=null){b(this.graph)}return true},process:function(e,c,d,b){this.processor=c;this.filter=b;this.quick=true;this.base=d;return this.parseStatements(new String(e))},t:function(){return{o:null}},parseStatements:function(b){b=b.toString();while(b.length>0){b=this.skipWS(b);if(b.length==0){return true}b.charAt(0)=="@"?b=this.consumeDirective(b):b=this.consumeStatement(b);this.expect(b,".");b=this.skipWS(b.slice(1))}return true},add:function(c){var b=true;if(this.filter!=null&&!this.filter(c)){return}this.quick?this.processor(c):this.graph.add(c)},consumeBlankNode:function(c,b){b.o=this.context.createBlankNode();c=this.skipWS(c.slice(1));if(c.charAt(0)=="]"){return c.slice(1)}c=this.skipWS(this.consumePredicateObjectList(c,b));this.expect(c,"]");return this.skipWS(c.slice(1))},consumeCollection:function(f,e){e.o=this.context.createBlankNode();var c=this.t();c.o=e.o;f=this.skipWS(f.slice(1));var b=f.charAt(0)!=")";if(!b){e.o=this.context.createNamedNode(this.context.resolve("rdf:nil"))}while(b){var g=this.t();switch(f.charAt(0)){case"[":f=this.consumeBlankNode(f,g);break;case"_":f=this.consumeKnownBlankNode(f,g);break;case"(":f=this.consumeCollection(f,g);break;case"<":f=this.consumeURI(f,g);break;case'"':f=this.consumeLiteral(f,g);break;default:var d=f.match(a.parsers.Turtle.simpleObjectToken).shift();if(d.charAt(d.length-1)==")"){d=d.substring(0,d.length-1)}if(d=="false"||d=="true"){g.o=this.context.createLiteral(d,this.context.createNamedNode(this.context.resolve("xsd:boolean")))}else{if(d.indexOf(":")>-1){g.o=this.context.resolve(d)}else{if(a.parsers.Turtle.tokenInteger.test(d)){g.o=this.context.createLiteral(d,this.context.createNamedNode(this.context.resolve("xsd:integer")))}else{if(a.parsers.Turtle.tokenDouble.test(d)){g.o=this.context.createLiteral(d,this.context.createNamedNode(this.context.resolve("xsd:double")))}else{if(a.parsers.Turtle.tokenDecimal.test(d)){g.o=this.context.createLiteral(d,this.context.createNamedNode(this.context.resolve("xsd:decimal")))}else{throw new Error("unrecognised token: "+d)}}}}}f=f.slice(d.length);break}this.add(this.context.createTriple(c.o,this.context.createNamedNode(this.context.resolve("rdf:first")),g.o));f=this.skipWS(f);b=f.charAt(0)!=")";if(b){this.add(this.context.createTriple(c.o,this.context.createNamedNode(this.context.resolve("rdf:rest")),c.o=this.context.createBlankNode()))}else{this.add(this.context.createTriple(c.o,this.context.createNamedNode(this.context.resolve("rdf:rest")),this.context.createNamedNode(this.context.resolve("rdf:nil"))))}}return this.skipWS(f.slice(1))},consumeDirective:function(b){var d=0;if(b.substring(1,7)=="prefix"){b=this.skipWS(b.slice(7));d=b.indexOf(":");var c=b.substring(0,d);b=this.skipWS(b.slice(++d));this.expect(b,"<");this.context.setPrefix(c,a.parsers.decodeString(b.substring(1,d=b.indexOf(">"))));b=this.skipWS(b.slice(++d))}else{if(b.substring(1,5)=="base"){b=this.skipWS(b.slice(5));this.expect(b,"<");this.base=this.context.createIRI(a.parsers.decodeString(b.substring(1,d=b.indexOf(">"))));b=this.skipWS(b.slice(++d))}else{throw new Error("Unknown directive: "+b.substring(0,50))}}return b},consumeKnownBlankNode:function(c,b){this.expect(c,"_:");var d=c.slice(2).match(a.parsers.Turtle.simpleToken).shift();b.o=this.getBlankNode(d);return c.slice(d.length+2)},consumeLiteral:function(e,g){var f="";var d=true;var b=0;if(e.substring(0,3)=='"""'){b=3;while(d){b=e.indexOf('"""',b);if(d=e.charAt(b-1)=="\\"){b++}}f=e.substring(3,b);e=e.slice(f.length+6)}else{while(d){b=e.indexOf('"',b+1);d=e.charAt(b-1)=="\\"}f=e.substring(1,b);e=e.slice(f.length+2)}f=a.parsers.decodeString(f);switch(e.charAt(0)){case"@":var c=e.match(a.parsers.Turtle.simpleObjectToken).shift();g.o=this.context.createLiteral(f,c.slice(1));e=e.slice(c.length);break;case"^":var c=e.match(a.parsers.Turtle.simpleObjectToken).shift().slice(2);if(c.charAt(0)=="<"){g.o=this.context.createLiteral(f,this.context.createNamedNode(c.substring(1,c.length-1)))}else{g.o=this.context.createLiteral(f,this.context.createNamedNode(this.context.resolve(c)))}e=e.slice(c.length+2);break;default:g.o=this.context.createLiteral(f);break}return e},consumeObjectList:function(e,d,f){var b=true;while(b){var g=this.t();switch(e.charAt(0)){case"[":e=this.consumeBlankNode(e,g);break;case"_":e=this.consumeKnownBlankNode(e,g);break;case"(":e=this.consumeCollection(e,g);break;case"<":e=this.consumeURI(e,g);break;case'"':e=this.consumeLiteral(e,g);break;default:var c=e.match(a.parsers.Turtle.simpleObjectToken).shift();if(c.charAt(c.length-1)=="."){c=c.substring(0,c.length-1)}if(c=="false"||c=="true"){g.o=this.context.createLiteral(c,this.context.createNamedNode(this.context.resolve("xsd:boolean")))}else{if(c.indexOf(":")>-1){g.o=this.context.createNamedNode(this.context.resolve(c))}else{if(a.parsers.Turtle.tokenInteger.test(c)){g.o=this.context.createLiteral(c,this.context.createNamedNode(this.context.resolve("xsd:integer")))}else{if(a.parsers.Turtle.tokenDouble.test(c)){g.o=this.context.createLiteral(c,this.context.createNamedNode(this.context.resolve("xsd:double")))}else{if(a.parsers.Turtle.tokenDecimal.test(c)){g.o=this.context.createLiteral(c,this.context.createNamedNode(this.context.resolve("xsd:decimal")))}else{throw new Error("unrecognised token: "+c)}}}}}e=e.slice(c.length);break}this.add(this.context.createTriple(d.o,f,g.o));e=this.skipWS(e);b=e.charAt(0)==",";if(b){e=this.skipWS(e.slice(1))}}return e},consumePredicateObjectList:function(e,d){var c=true;while(c){var b=e.match(a.parsers.Turtle.simpleToken).shift();var f=null;if(b=="a"){f=this.context.createNamedNode(this.context.resolve("rdf:type"))}else{switch(b.charAt(0)){case"<":f=this.context.createNamedNode(a.parsers.decodeString(b.substring(1,b.indexOf(">"))));break;default:f=this.context.createNamedNode(this.context.resolve(b));break}}e=this.skipWS(e.slice(b.length));e=this.consumeObjectList(e,d,f);c=e.charAt(0)==";";if(c){e=this.skipWS(e.slice(1))}}return e},consumeQName:function(c,b){var d=c.match(a.parsers.Turtle.simpleToken).shift();b.o=this.context.createNamedNode(this.context.resolve(d));return c.slice(d.length)},consumeStatement:function(c){var b=this.t();switch(c.charAt(0)){case"[":c=this.consumeBlankNode(c,b);if(c.charAt(0)=="."){return c}break;case"_":c=this.consumeKnownBlankNode(c,b);break;case"(":c=this.consumeCollection(c,b);break;case"<":c=this.consumeURI(c,b);break;default:c=this.consumeQName(c,b);break}c=this.consumePredicateObjectList(this.skipWS(c),b);return c},consumeURI:function(c,b){this.expect(c,"<");var d=0;b.o=a.parsers.decodeString(c.substring(1,d=c.indexOf(">")));if(this.base){b.o=this.base.resolveReference(b.o)}b.o=this.context.createNamedNode(b.o);return c.slice(++d)},expect:function(c,b){if(c.substring(0,b.length)==b){return}throw new Error("Expected token: "+b+" at "+c.substring(0,50))},getBlankNode:function(c){if(this.bnHash.exists(c)){return this.bnHash.get(c)}var b=this.context.createBlankNode();this.bnHash.set(c,b);return b},skipWS:function(b){while(a.parsers.Turtle.isWhitespace.test(b.charAt(0))){b=b.replace(a.parsers.Turtle.initialWhitespace,"");if(b.charAt(0)=="#"){b=b.replace(a.parsers.Turtle.initialComment,"")}}return b}};a.parseNT=function(f,b,e,c,d){return new a.parsers.NTriples(a).parse(f,b,e,c,d)};a.processNT=function(e,b,d,c){return new a.parsers.NTriples(a).process(e,b,d,c)};a.parseTurtle=function(f,b,e,c,d){return new a.parsers.Turtle(a).parse(f,b,e,c,d)};a.processTurtle=function(e,b,d,c){return new a.parsers.Turtle(a).process(e,b,d,c)}})(rdf);(function(a){if(!a.serializers){a.serializers={}}a.serializers.NTriples=function(b){};a.serializers.NTriples.prototype={serialize:function(b){return b.toArray().join("\n")}};a.serializers.Turtle=function(b){this.context=b;this.createPrefixMap()};a.serializers.Turtle.NS_RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";a.serializers.Turtle.RDF_TYPE=a.createNamedNode(a.serializers.Turtle.NS_RDF+"type");a.serializers.Turtle.RDF_RDF=a.createNamedNode(a.serializers.Turtle.NS_RDF+"RDF");a.serializers.Turtle.RDF_FIRST=a.createNamedNode(a.serializers.Turtle.NS_RDF+"first");a.serializers.Turtle.RDF_REST=a.createNamedNode(a.serializers.Turtle.NS_RDF+"rest");a.serializers.Turtle.RDF_NIL=a.createNamedNode(a.serializers.Turtle.NS_RDF+"nil");a.serializers.Turtle.prototype={context:null,index:null,lists:null,prefixMap:null,usedPrefixes:null,nonAnonBNodes:null,skipSubjects:null,serialize:function(c){this.initiate();c=this.suckLists(c);var b=this;c.forEach(function(e,d,f){b.addTripleToIndex(e,d,f)});return this.render()},startsWith:function(d,c,b){if(b){return c.toLowerCase()==d.substring(0,c.length).toLowerCase()}return c==d.substring(0,c.length)},contains:function(b,c){return b.indexOf(c)>=0},remove:function(c,d){var b=c.indexOf(d);if(b==-1){return false}c.splice(b,1);return true},addTripleToIndex:function(d,c,e){if(d.object.interfaceName=="BlankNode"){this.nonAnonBNodes.set(d.object.toString(),this.nonAnonBNodes.exists(d.object.toString())?this.nonAnonBNodes.get(d.object.toString())+1:1)}var b=this.shrink(d.subject);var f=this.shrink(d.property,true);if(!this.index.exists(b)){this.index.set(b,new a.Hash)}if(!this.index.get(b).exists(f)){this.index.get(b).set(f,new Array)}this.index.get(b).get(f).push(d.object)},anonBNode:function(c,b){return this.propertyObjectChain(this.index.get(c),b)},createPrefixMap:function(){var b=this.context.prefixes;this.prefixMap=new a.Hash;for(k in b){this.prefixMap.set(b[k],k.concat(":"))}},initiate:function(){this.index=new a.Hash;this.usedPrefixes=new Array;this.nonAnonBNodes=new a.Hash;this.skipSubjects=new Array;this.lists=new a.Hash},output:function(b){if(b.interfaceName=="NamedNode"){return this.shrink(b)}if(b.interfaceName=="Literal"&&b.datatype){if(b.datatype.equals(this.context.resolve("xsd:integer"))){return b.value}if(b.datatype.equals(this.context.resolve("xsd:double"))){return b.value}if(b.datatype.equals(this.context.resolve("xsd:decimal"))){return b.value}if(b.datatype.equals(this.context.resolve("xsd:boolean"))){return b.value}return'"'+b.value+'"^^'+this.shrink(b.type)}return b.toNT()},propertyObjectChain:function(c,b){if(!c){return}if(b==null){b=2}var e="";var d=this;var f=c.keys();f.sort();if(this.contains(f,"a")){this.remove(f,"a");f.unshift("a")}f.forEach(function(h,j,g){e=e+(j>0?(new Array(b+1)).join(" "):"")+h+" ";c.get(h).forEach(function(q,n,l){var m="";if(l.length>2){m="\n"+(new Array(b+2+1)).join(" ")}if(q.toString().charAt(0)=="_"&&!d.nonAnonBNodes.exists(q.toString())){if(d.lists.exists(q.toNT())){e=e+d.renderList(q.toNT(),b+3)}else{e=e+m+"[ "+d.anonBNode(q.toString(),b+2+2)+m+(l.length==1?" ":"")+"]"}}else{e=e+m+d.output(q)}if(l.length-1!=n){if(l.length>2){e=e+","+(new Array(b+2+2)).join(" ")}else{e=e+", "}}});e=e+(g.length-1==j?"":";\n")});return e},render:function(){var d=new Array;var c=this;this.skipSubjects=this.nonAnonBNodes.keys();this.nonAnonBNodes.keys().forEach(function(g,h,f){if(c.nonAnonBNodes.get(g)==1){c.nonAnonBNodes.remove(g)}});this.index.keys().forEach(function(g,h,f){var j="";if(g.charAt(0)=="_"){if(!c.nonAnonBNodes.exists(g)&&!c.contains(c.skipSubjects,g)){if(c.lists.exists(g)){j=c.renderList(g,2)+" "+c.propertyObjectChain(c.index.get(g))}else{j="[ "+c.anonBNode(g,2)+"\n]"}}}else{j=g+" "+c.propertyObjectChain(c.index.get(g))}if(j.length>0){d.push(j+" .\n")}});if(this.usedPrefixes.length>0){var b=new a.Hash;this.prefixMap.keys().forEach(function(f,g,j){if(c.contains(c.usedPrefixes,f)){b.set(c.prefixMap.get(f),f)}});var e=b.keys();e.sort();e.reverse();d.unshift("");e.forEach(function(h,g,f){d.unshift("@prefix "+h+" <"+b.get(h)+"> .")})}return d.join("\n")},renderList:function(j,c){var f=this;var h=new Array;f.lists.get(j).forEach(function(q,m,l){h.push(f.output(q))});var e=new Array;var g="";while(h.length>0){var b=h.shift();if(g.length+b.length<75){g=g.concat(b+" ")}else{e.push(g);g=b+" "}}e.push(g);var d=e.length==1?" ":"\n"+(new Array(c)).join(" ");return"("+d+e.join(d)+(e.length==1?"":"\n")+")"},shrink:function(f,d){if(d==null){d=false}if(d&&f.equals(a.serializers.Turtle.RDF_TYPE)){return"a"}if(f.equals(a.serializers.Turtle.RDF_NIL)){return"()"}var e=0,c=this.prefixMap.keys();while(e<c.length){var b=c[e];++e;if(this.startsWith(f.toString(),b)){if(!this.contains(this.usedPrefixes,b)){this.usedPrefixes.push(b)}return f.toString().replace(b,this.prefixMap.get(b))}}return f.toNT()},suckLists:function(g){var h=function(l){return function(n,m,q){return n.subject.equals(l)}};var d=function(l){return function(n,m,q){return n.property.equals(l)}};var j=function(l,m){return function(q,n,r){return q.property.equals(l)&&q.object.equals(m)}};var b=function(l){return function(n,m,q){return !(n.subject.equals(l.subject)&&n.property.equals(l.property)&&n.object.equals(l.object))}};var e=g.filter(function(m,l,n){return m.property.equals(a.serializers.Turtle.RDF_FIRST)||m.property.equals(a.serializers.Turtle.RDF_REST)});e.forEach(function(m,l,n){g=g.filter(b(m))});var c=e.filter(function(m,l,n){return m.object.equals(a.serializers.Turtle.RDF_NIL)});var f=this;c.forEach(function(y,l,m){var u=new Array;var r=y;var w=null;while(r!=null){w=r.subject;u.unshift(e.filter(h(w)).filter(d(a.serializers.Turtle.RDF_FIRST)).toArray().pop().object);e=e.filter(function(q,s,n){return !q.subject.equals(w)});r=e.filter(j(a.serializers.Turtle.RDF_REST,w)).toArray().pop()}f.lists.set(w.toNT(),u)});return g}};a.nt=function(b){return new a.serializers.NTriples(a).serialize(b)};a.turtle=function(b){return new a.serializers.Turtle(a).serialize(b)}})(rdf);(function(a){a.filters={s:function(b){if(Array.isArray(b)){return function(c){for(i in b){if(c.s.equals(b[i])){return true}}return false}}return function(c){return c.s.equals(b)}},p:function(b){if(Array.isArray(b)){return function(c){for(i in b){if(c.p.equals(b[i])){return true}}return false}}return function(c){return c.p.equals(b)}},o:function(b){if(Array.isArray(b)){return function(c){for(i in b){if(c.o.equals(b[i])){return true}}return false}}return function(c){return c.o.equals(b)}},sp:function(b,c){if(!Array.isArray(b)){b=[b]}if(!Array.isArray(c)){c=[c]}return function(d){for(i in b){for(ii in c){if(d.p.equals(c[ii])&&d.s.equals(b[i])){return true}}}return false}},so:function(b,c){if(!Array.isArray(b)){b=[b]}if(!Array.isArray(c)){c=[c]}return function(d){for(i in b){for(ii in c){if(d.s.equals(b[i])&&d.o.equals(c[ii])){return true}}}return false}},po:function(b,c){if(!Array.isArray(b)){b=[b]}if(!Array.isArray(c)){c=[c]}return function(d){for(i in b){for(ii in c){if(d.p.equals(b[i])&&d.o.equals(c[i])){return true}}}return false}},spo:function(b,c,d){if(!Array.isArray(b)){b=[b]}if(!Array.isArray(c)){c=[c]}if(!Array.isArray(d)){d=[d]}return function(e){for(i in b){for(ii in c){for(iii in d){if(e.s.equals(b[i])&&e.p.equals(c[ii])&&e.o.equals(d[iii])){return true}}}}return false}},describes:function(b){if(Array.isArray(b)){return function(c){for(i in b){if(c.s.equals(b[i])||c.o.equals(b[i])){return true}}return false}}return function(c){return c.s.equals(b)||c.o.equals(b)}},type:function(c){var b=a.resolve("rdf:type");if(Array.isArray(c)){return function(d){for(i in c){if(d.p.equals(b)&&d.o.equals(c[i])){return true}}return false}}return function(d){return d.p.equals(b)&&d.o.equals(c)}},constrainedTriple:function(){return function(b){return(b.s.interfaceName=="NamedNode"||b.s.interfaceName=="BlankNode")&&b.p.interfaceName=="NamedNode"}},link:function(){return function(b){return b.s.interfaceName=="NamedNode"&&b.p.interfaceName=="NamedNode"&&b.o.interfaceName=="NamedNode"}},};a.filterCount=function(b,d){var e=0;b.forEach(function(c){d(c)&&++e});return e};a.isOldSchool=function(b){return b.every(a.filters.constrainedTriple())};a.links=function(b){return b.filter(a.filters.link())}})(rdf);(function(a){a.BaseGraph=a.Graph;a.Graph=function(b){return Object.defineProperties(new a.BaseGraph(b),{_distinct:{writable:false,configurable:false,enumerable:false,value:function(c){var d=new a.Hash;for(i in this._graph){if(!d.exists(this._graph[i][c].h)){d.set(this._graph[i][c].h,this._graph[i][c])}}return d.toArray()}},subjects:{writable:false,configurable:false,enumerable:true,value:function(){return this._distinct("s")}},predicates:{writable:false,configurable:false,enumerable:true,value:function(){return this._distinct("p")}},objects:{writable:false,configurable:false,enumerable:true,value:function(){return this._distinct("o")}},isGround:{writable:false,configurable:false,enumerable:true,value:function(){return this.every(function(c){return !(c.s.interfaceName=="BlankNode"||c.p.interfaceName=="BlankNode"||c.o.interfaceName=="BlankNode")})}},})}})(rdf);(function(a){a.Converter=function(){};a.Converter.INTEGER=new RegExp("^(-|\\+)?[0-9]+$","");a.Converter.DOUBLE=new RegExp("^(-|\\+)?(([0-9]+\\.[0-9]*[eE]{1}(-|\\+)?[0-9]+)|(\\.[0-9]+[eE]{1}(-|\\+)?[0-9]+)|([0-9]+[eE]{1}(-|\\+)?[0-9]+))$","");a.Converter.DECIMAL=new RegExp("^(-|\\+)?[0-9]*\\.[0-9]+?$","");a.Converter.prototype={c:null,_string:function(c,b){if(!(Boolean(b).valueOf())||b.indexOf(":")<0){return a.createLiteral(c,b)}return a.createLiteral(c,a.ref(b))},_boolean:function(c){return a.createLiteral(c?"true":"false",a.ref("xsd:boolean"))},_date:function(f,b){function e(d){return d<10?"0"+d:d}var c=f.getUTCFullYear()+"-"+e(f.getUTCMonth()+1)+"-"+e(f.getUTCDate())+"T"+e(f.getUTCHours())+":"+e(f.getUTCMinutes())+":"+e(f.getUTCSeconds());if(Boolean(b)){c+=f.getUTCMilliseconds()>0?c+"."+f.getUTCMilliseconds():c}return a.createLiteral(c+="Z",a.ref("xsd:dateTime"))},_number:function(b){if(b==Number.POSITIVE_INFINITY){return a.createLiteral("INF",a.ref("xsd:double"))}if(b==Number.NEGATIVE_INFINITY){return a.createLiteral("-INF",a.ref("xsd:double"))}if(b==Number.NaN){return a.createLiteral("NaN",a.ref("xsd:double"))}b=b.toString();if(a.Converter.INTEGER.test(b)){return a.createLiteral(b,a.ref("xsd:integer"))}if(a.Converter.DECIMAL.test(b)){return a.createLiteral(b,a.ref("xsd:decimal"))}if(a.Converter.DOUBLE.test(b)){return a.createLiteral(b,a.ref("xsd:double"))}throw new TypeError("Can't convert weird number: "+b)},convert:function(b,c){switch(typeof b){case"string":return this._string(b,c);case"boolean":return this._boolean(b);case"number":return this._number(b);case"object":switch(b.constructor.name){case"Boolean":return this._boolean(b.valueOf());case"Date":return this._date(b,c);case"Number":return this._number(b)}}throw new TypeError("Cannot convert type: "+b.constructor.name)}};a.converter=new a.Converter;a.literal=function(c,b){return a.converter.convert(c,b)}})(rdf);(function(a){a.log=function(b){console.log(b)};a.ref=function(b){return b==null?this.createBlankNode():this.createNamedNode(this.iri(b))};a.iri=function(b){return this.createIRI((o=this.resolve(b))==null?b:o)};a.node=function(b,c){if(c){return this.literal(b,c)}if(b===null||b===undefined){return this.createBlankNode()}if(typeof b=="string"&&b.indexOf(":")>=0){return this.ref(b)}return this.literal(b)}})(rdf);(function(a){a.prefixes.addAll({owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",rdfa:"http://www.w3.org/ns/rdfa#",xhv:"http://www.w3.org/1999/xhtml/vocab#",xml:"http://www.w3.org/XML/1998/namespace",xsd:"http://www.w3.org/2001/XMLSchema#",grddl:"http://www.w3.org/2003/g/data-view#",powder:"http://www.w3.org/2007/05/powder#",powders:"http://www.w3.org/2007/05/powder-s#",rif:"http://www.w3.org/2007/rif#",atom:"http://www.w3.org/2005/Atom/",xhtml:"http://www.w3.org/1999/xhtml#",formats:"http://www.w3.org/ns/formats/",xforms:"http://www.w3.org/2002/xforms/",xhtmlvocab:"http://www.w3.org/1999/xhtml/vocab/",xpathfn:"http://www.w3.org/2005/xpath-functions#",http:"http://www.w3.org/2006/http#",link:"http://www.w3.org/2006/link#",time:"http://www.w3.org/2006/time#",acl:"http://www.w3.org/ns/auth/acl#",cert:"http://www.w3.org/ns/auth/cert#",rsa:"http://www.w3.org/ns/auth/rsa#",crypto:"http://www.w3.org/2000/10/swap/crypto#",list:"http://www.w3.org/2000/10/swap/list#",log:"http://www.w3.org/2000/10/swap/log#",math:"http://www.w3.org/2000/10/swap/math#",os:"http://www.w3.org/2000/10/swap/os#",string:"http://www.w3.org/2000/10/swap/string#",doc:"http://www.w3.org/2000/10/swap/pim/doc#",contact:"http://www.w3.org/2000/10/swap/pim/contact#",p3p:"http://www.w3.org/2002/01/p3prdfv1#",swrl:"http://www.w3.org/2003/11/swrl#",swrlb:"http://www.w3.org/2003/11/swrlb#",exif:"http://www.w3.org/2003/12/exif/ns#",earl:"http://www.w3.org/ns/earl#",ma:"http://www.w3.org/ns/ma-ont#",sawsdl:"http://www.w3.org/ns/sawsdl#",sd:"http://www.w3.org/ns/sparql-service-description#",skos:"http://www.w3.org/2004/02/skos/core#",fresnel:"http://www.w3.org/2004/09/fresnel#",gen:"http://www.w3.org/2006/gen/ont#",timezone:"http://www.w3.org/2006/timezone#",skosxl:"http://www.w3.org/2008/05/skos-xl#",org:"http://www.w3.org/ns/org#",ical:"http://www.w3.org/2002/12/cal/ical#",wgs84:"http://www.w3.org/2003/01/geo/wgs84_pos#",vcard:"http://www.w3.org/2006/vcard/ns#",turtle:"http://www.w3.org/2008/turtle#",pointers:"http://www.w3.org/2009/pointers#",dcat:"http://www.w3.org/ns/dcat#",imreg:"http://www.w3.org/2004/02/image-regions#",rdfg:"http://www.w3.org/2004/03/trix/rdfg-1/",swp:"http://www.w3.org/2004/03/trix/swp-2/",rei:"http://www.w3.org/2004/06/rei#",wairole:"http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#",states:"http://www.w3.org/2005/07/aaa#",wn20schema:"http://www.w3.org/2006/03/wn/wn20/schema/",httph:"http://www.w3.org/2007/ont/httph#",act:"http://www.w3.org/2007/rif-builtin-action#",common:"http://www.w3.org/2007/uwa/context/common.owl#",dcn:"http://www.w3.org/2007/uwa/context/deliverycontext.owl#",hard:"http://www.w3.org/2007/uwa/context/hardware.owl#",java:"http://www.w3.org/2007/uwa/context/java.owl#",loc:"http://www.w3.org/2007/uwa/context/location.owl#",net:"http://www.w3.org/2007/uwa/context/network.owl#",push:"http://www.w3.org/2007/uwa/context/push.owl#",soft:"http://www.w3.org/2007/uwa/context/software.owl#",web:"http://www.w3.org/2007/uwa/context/web.owl#",content:"http://www.w3.org/2008/content#",vs:"http://www.w3.org/2003/06/sw-vocab-status/ns#",air:"http://dig.csail.mit.edu/TAMI/2007/amord/air#",ex:"http://example.org/",dc:"http://purl.org/dc/terms/",dc11:"http://purl.org/dc/elements/1.1/",dctype:"http://purl.org/dc/dcmitype/",foaf:"http://xmlns.com/foaf/0.1/",cc:"http://creativecommons.org/ns#",opensearch:"http://a9.com/-/spec/opensearch/1.1/","void":"http://rdfs.org/ns/void#",sioc:"http://rdfs.org/sioc/ns#",sioca:"http://rdfs.org/sioc/actions#",sioct:"http://rdfs.org/sioc/types#",lgd:"http://linkedgeodata.org/vocabulary#",moat:"http://moat-project.org/ns#",days:"http://ontologi.es/days#",giving:"http://ontologi.es/giving#",lang:"http://ontologi.es/lang/core#",like:"http://ontologi.es/like#",status:"http://ontologi.es/status#",og:"http://opengraphprotocol.org/schema/",protege:"http://protege.stanford.edu/system#",dady:"http://purl.org/NET/dady#",uri:"http://purl.org/NET/uri#",audio:"http://purl.org/media/audio#",video:"http://purl.org/media/video#",gridworks:"http://purl.org/net/opmv/types/gridworks#",hcterms:"http://purl.org/uF/hCard/terms/",bio:"http://purl.org/vocab/bio/0.1/",cs:"http://purl.org/vocab/changeset/schema#",geographis:"http://telegraphis.net/ontology/geography/geography#",doap:"http://usefulinc.com/ns/doap#",daml:"http://www.daml.org/2001/03/daml+oil#",geonames:"http://www.geonames.org/ontology#",sesame:"http://www.openrdf.org/schema/sesame#",cv:"http://rdfs.org/resume-rdf/",wot:"http://xmlns.com/wot/0.1/",media:"http://purl.org/microformat/hmedia/",ctag:"http://commontag.org/ns#"})})(rdf);