src/rvn3_parser.js
function convertEntity(entity) {
    switch (entity[0]) {
        case '"': {
            if(entity.indexOf("^^") > 0) {
                var parts = entity.split("^^");
                return {literal: parts[0] + "^^<" + parts[1] + ">" };
            } else {
                return { literal: entity };
            }
        }
        case '_': return { blank: entity.replace('b', '') };
        default:  return { token: 'uri', value: entity, prefix: null, suffix: null };
    }
}
function convertEntity(entity) {
    switch (entity[0]) {
        case '"': {
            if(entity.indexOf("^^") > 0) {
                var parts = entity.split("^^");
                return {literal: parts[0] + "^^<" + parts[1] + ">" };
            } else {
                return { literal: entity };
            }
        }
        case '_': return { blank: entity.replace('b', '') };
        default:  return { token: 'uri', value: entity, prefix: null, suffix: null };
    }
}
function convertEntity ( entity ) { switch ( entity [ 0 ] ) { case '"' : { if ( entity . indexOf ( "^^" ) > 0 ) { var parts = entity . split ( "^^" ) ; return { literal : parts [ 0 ] + "^^<" + parts [ 1 ] + ">" } ; } else { return { literal : entity } ; } } case '_' : return { blank : entity . replace ( 'b' , '' ) } ; default : return { token : 'uri' , value : entity , prefix : null , suffix : null } ; } }
Converts an entity in N3.js representation to this library's representation
Converts an entity in N3 . js representation to this library s representation