2 lines
2.2 KiB
JavaScript
2 lines
2.2 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[87390],{87390:function(P,r,T){"use strict";T.r(r),T.d(r,{ntriples:function(){return B}});var _={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function f(i,n){var e=i.location,I;e==_.PRE_SUBJECT&&n=="<"?I=_.WRITING_SUB_URI:e==_.PRE_SUBJECT&&n=="_"?I=_.WRITING_BNODE_URI:e==_.PRE_PRED&&n=="<"?I=_.WRITING_PRED_URI:e==_.PRE_OBJ&&n=="<"?I=_.WRITING_OBJ_URI:e==_.PRE_OBJ&&n=="_"?I=_.WRITING_OBJ_BNODE:e==_.PRE_OBJ&&n=='"'?I=_.WRITING_OBJ_LITERAL:e==_.WRITING_SUB_URI&&n==">"||e==_.WRITING_BNODE_URI&&n==" "?I=_.PRE_PRED:e==_.WRITING_PRED_URI&&n==">"?I=_.PRE_OBJ:e==_.WRITING_OBJ_URI&&n==">"||e==_.WRITING_OBJ_BNODE&&n==" "||e==_.WRITING_OBJ_LITERAL&&n=='"'||e==_.WRITING_LIT_LANG&&n==" "||e==_.WRITING_LIT_TYPE&&n==">"?I=_.POST_OBJ:e==_.WRITING_OBJ_LITERAL&&n=="@"?I=_.WRITING_LIT_LANG:e==_.WRITING_OBJ_LITERAL&&n=="^"?I=_.WRITING_LIT_TYPE:n==" "&&(e==_.PRE_SUBJECT||e==_.PRE_PRED||e==_.PRE_OBJ||e==_.POST_OBJ)?I=e:e==_.POST_OBJ&&n=="."?I=_.PRE_SUBJECT:I=_.ERROR,i.location=I}const B={name:"ntriples",startState:function(){return{location:_.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(i,n){var e=i.next();if(e=="<"){f(n,e);var I="";return i.eatWhile(function(R){return R!="#"&&R!=">"?(I+=R,!0):!1}),n.uris.push(I),i.match("#",!1)||(i.next(),f(n,">")),"variable"}if(e=="#"){var u="";return i.eatWhile(function(R){return R!=">"&&R!=" "?(u+=R,!0):!1}),n.anchors.push(u),"url"}if(e==">")return f(n,">"),"variable";if(e=="_"){f(n,e);var l="";return i.eatWhile(function(R){return R!=" "?(l+=R,!0):!1}),n.bnodes.push(l),i.next(),f(n," "),"builtin"}if(e=='"')return f(n,e),i.eatWhile(function(R){return R!='"'}),i.next(),i.peek()!="@"&&i.peek()!="^"&&f(n,'"'),"string";if(e=="@"){f(n,"@");var E="";return i.eatWhile(function(R){return R!=" "?(E+=R,!0):!1}),n.langs.push(E),i.next(),f(n," "),"string.special"}if(e=="^"){i.next(),f(n,"^");var O="";return i.eatWhile(function(R){return R!=">"?(O+=R,!0):!1}),n.types.push(O),i.next(),f(n,">"),"variable"}e==" "&&f(n,e),e=="."&&f(n,e)}}}}]);
|