All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.spark.reader.file.TripleRowSchema Maven / Gradle / Ivy

There is a newer version: 2.4.2
Show newest version
/*
 * Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
 */
package com.marklogic.spark.reader.file;

import org.apache.spark.sql.types.DataTypes;
import org.apache.spark.sql.types.StructType;

/**
 * Represents a triple as read from an RDF file and serialized into the 3 XML elements comprising
 * a MarkLogic triple.
 */
public abstract class TripleRowSchema {

    public static final StructType SCHEMA = new StructType()
        .add("subject", DataTypes.StringType)
        .add("predicate", DataTypes.StringType)
        .add("object", DataTypes.StringType)
        .add("datatype", DataTypes.StringType)
        .add("lang", DataTypes.StringType)
        .add("graph", DataTypes.StringType);

    private TripleRowSchema() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy