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

org.modelfabric.sparql.mapper.IRISolutionMapper.scala Maven / Gradle / Ivy

There is a newer version: 0.2.13
Show newest version
package org.modelfabric.sparql.mapper

import org.modelfabric.sparql.api.QuerySolution
import org.eclipse.rdf4j.model.IRI

/**
 * The mapper expects that a query solution has a IRI field.
 * It maps the solution to that field.
 */
class IRISolutionMapper(fieldName : String) extends SolutionMapper[IRI] {

  def map(querySolution : QuerySolution) : IRI = querySolution.asValueMap(fieldName).asIri
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy