Class ManchesterSyntaxUtils
java.lang.Object
it.uniroma2.art.semanticturkey.syntax.manchester.owl2.ManchesterSyntaxUtils
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ManchesterClassInterface
getManchClassFromBNode
(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, org.eclipse.rdf4j.model.Model model) static ManchesterClassInterface
getManchClassFromBNode
(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, org.eclipse.rdf4j.repository.RepositoryConnection conn) static String
getManchExprFromBNode
(org.eclipse.rdf4j.model.BNode bnode, Map<String, String> namespaceToPrefixMap, boolean getPrefixName, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, boolean useUppercaseSyntax, org.eclipse.rdf4j.model.Model model) static String
getManchExprFromBNode
(org.eclipse.rdf4j.model.BNode bnode, Map<String, String> namespaceToPrefixMap, boolean getPrefixName, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, boolean useUppercaseSyntax, org.eclipse.rdf4j.repository.RepositoryConnection conn) static String
getManchExprFromBNode
(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, boolean useUppercaseSyntax, org.eclipse.rdf4j.repository.RepositoryConnection conn) static boolean
isClassAxiom
(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] resources, org.eclipse.rdf4j.repository.RepositoryConnection repositoryConnection) return true if the bnode represents a class axiom, false otherwisestatic ManchesterClassInterface
parseCompleteExpression
(String mancExp, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) static ManchesterClassInterface
parseDatatypeRestrictionExpression
(String mancExp, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) static ManchesterClassInterface
parseLiteralEnumerationExpression
(String mancExp, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) static org.eclipse.rdf4j.model.Resource
parseManchesterExpr
(ManchesterClassInterface mci, List<org.eclipse.rdf4j.model.Statement> statList, org.eclipse.rdf4j.model.ValueFactory valueFactory) static org.eclipse.rdf4j.model.Resource
parseObjectPropertyExpression
(ObjectPropertyExpression ope, List<org.eclipse.rdf4j.model.Statement> statList, org.eclipse.rdf4j.model.ValueFactory valueFactory) static ObjectPropertyExpression
parseObjectPropertyExpression
(String objectPropertyExpression, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) static void
performSemanticChecks
(ManchesterClassInterface mci, org.eclipse.rdf4j.repository.RepositoryConnection conn, List<ManchesterGenericError> errorMsgList, Map<String, Integer> resourceToPosMap, boolean isFirst, String manchExpr) static String
printRes
(boolean getPrefixName, Map<String, String> namespaceToPrefixsMap, org.eclipse.rdf4j.model.IRI res)
-
Field Details
-
OWL_SELF
-
OWL_MINQUALIFIEDCARDINALITY
-
OWL_MAXQUALIFIEDCARDINALITY
-
OWL_QUALIFIEDCARDINALITY
-
OWL_ONCLASS
-
-
Constructor Details
-
ManchesterSyntaxUtils
public ManchesterSyntaxUtils()
-
-
Method Details
-
printRes
-
parseCompleteExpression
public static ManchesterClassInterface parseCompleteExpression(String mancExp, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) throws ManchesterParserException, ManchesterPrefixNotDefinedException, ManchesterSyntacticException -
performSemanticChecks
public static void performSemanticChecks(ManchesterClassInterface mci, org.eclipse.rdf4j.repository.RepositoryConnection conn, List<ManchesterGenericError> errorMsgList, Map<String, Integer> resourceToPosMap, boolean isFirst, String manchExpr) -
parseObjectPropertyExpression
public static ObjectPropertyExpression parseObjectPropertyExpression(String objectPropertyExpression, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) throws ManchesterParserException, ManchesterPrefixNotDefinedException, ManchesterSyntacticException -
parseDatatypeRestrictionExpression
public static ManchesterClassInterface parseDatatypeRestrictionExpression(String mancExp, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) throws ManchesterParserException, ManchesterPrefixNotDefinedException, ManchesterSyntacticException -
parseLiteralEnumerationExpression
public static ManchesterClassInterface parseLiteralEnumerationExpression(String mancExp, org.eclipse.rdf4j.model.ValueFactory valueFactory, Map<String, String> prefixToNamespacesMap) throws ManchesterParserException, ManchesterPrefixNotDefinedException, ManchesterSyntacticException -
parseManchesterExpr
public static org.eclipse.rdf4j.model.Resource parseManchesterExpr(ManchesterClassInterface mci, List<org.eclipse.rdf4j.model.Statement> statList, org.eclipse.rdf4j.model.ValueFactory valueFactory) -
parseObjectPropertyExpression
public static org.eclipse.rdf4j.model.Resource parseObjectPropertyExpression(ObjectPropertyExpression ope, List<org.eclipse.rdf4j.model.Statement> statList, org.eclipse.rdf4j.model.ValueFactory valueFactory) -
isClassAxiom
public static boolean isClassAxiom(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] resources, org.eclipse.rdf4j.repository.RepositoryConnection repositoryConnection) return true if the bnode represents a class axiom, false otherwise- Parameters:
bnode
-resources
-repositoryConnection
-- Returns:
-
getManchExprFromBNode
public static String getManchExprFromBNode(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, boolean useUppercaseSyntax, org.eclipse.rdf4j.repository.RepositoryConnection conn) throws NotClassAxiomException - Throws:
NotClassAxiomException
-
getManchExprFromBNode
public static String getManchExprFromBNode(org.eclipse.rdf4j.model.BNode bnode, Map<String, String> namespaceToPrefixMap, boolean getPrefixName, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, boolean useUppercaseSyntax, org.eclipse.rdf4j.repository.RepositoryConnection conn) throws NotClassAxiomException- Throws:
NotClassAxiomException
-
getManchClassFromBNode
public static ManchesterClassInterface getManchClassFromBNode(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, org.eclipse.rdf4j.repository.RepositoryConnection conn) throws NotClassAxiomException - Throws:
NotClassAxiomException
-
getManchExprFromBNode
public static String getManchExprFromBNode(org.eclipse.rdf4j.model.BNode bnode, Map<String, String> namespaceToPrefixMap, boolean getPrefixName, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, boolean useUppercaseSyntax, org.eclipse.rdf4j.model.Model model) throws NotClassAxiomException- Throws:
NotClassAxiomException
-
getManchClassFromBNode
public static ManchesterClassInterface getManchClassFromBNode(org.eclipse.rdf4j.model.BNode bnode, org.eclipse.rdf4j.model.Resource[] graphs, List<org.eclipse.rdf4j.model.Statement> tripleList, org.eclipse.rdf4j.model.Model model) throws NotClassAxiomException - Throws:
NotClassAxiomException
-