Examples of LiteralParser


Examples of fasp.parser.parsers.LiteralParser

    return new GroundRegularRule(head, bodyElts, bodyOp);
  }

  // Parse the result of the CSP solver
  public static GroundLiteral parseLiteral(String str) throws Exception {
    NonGroundLiteral lit = new LiteralParser().parse(new TokenState(str));
    Map<FaspVariable, FaspConstant> constMap = new HashMap<FaspVariable, FaspConstant>();
    return lit.ground(constMap);
  }
View Full Code Here

Examples of fasp.parser.parsers.LiteralParser

    return new GroundRegularRule(head, bodyElts, bodyOp);
  }

  // Parse the result of the CSP solver
  public static GroundLiteral parseLiteral(String str) throws Exception {
    NonGroundLiteral lit = new LiteralParser().parse(new TokenState(str));
    Map<FaspVariable, FaspConstant> constMap = new HashMap<FaspVariable, FaspConstant>();
    return lit.ground(constMap);
  }
View Full Code Here

Examples of org.jrdf.parser.ntriples.parser.LiteralParser

        final NodeParsersFactory parsersFactory = new NodeParsersFactoryImpl(graph, mapFactory);
        final URIReferenceParser uriReferenceParser = parsersFactory.getUriReferenceParser();
        final ParserBlankNodeFactory blankNodeFactory = new ParserBlankNodeFactoryImpl(mapFactory,
            graph.getElementFactory());
        blankNodeParser = parsersFactory.getBlankNodeParserWithFactory(blankNodeFactory);
        final LiteralParser literalParser = parsersFactory.getLiteralParser();
        final NodeMaps nodeMaps = new NodeMapsImpl(uriReferenceParser, blankNodeParser, literalParser);
        regexTripleFactory = new RegexTripleParserImpl(REGEX_MATCHER_FACTORY, graph.getTripleFactory(), nodeMaps);
    }
View Full Code Here

Examples of org.jrdf.parser.ntriples.parser.LiteralParser

            mapFactory, REGEX_MATCHER_FACTORY, namespaceListener);
        final NamespaceAwareURIReferenceParser uriReferenceParser = parsersFactory.getUriReferenceParser();
        final ParserBlankNodeFactory blankNodeFactory = new ParserBlankNodeFactoryImpl(mapFactory,
            graph.getElementFactory());
        final BlankNodeParser blankNodeParser = parsersFactory.getBlankNodeParserWithFactory(blankNodeFactory);
        final LiteralParser literalParser = parsersFactory.getLiteralParser();
        final NodeMaps nodeMaps = new NamespaceAwareNodeMaps(uriReferenceParser, blankNodeParser, literalParser);
        final RegexTripleParser regexTripleFactory = new RegexTripleParserImpl(REGEX_MATCHER_FACTORY,
            graph.getTripleFactory(), nodeMaps);
        return new NamespaceAwareTripleParser(REGEX_MATCHER_FACTORY, blankNodeParser, regexTripleFactory);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.