public ITripleCollectionHandler MakeRdfFileGenerator( IResourceFileMapper resourceMap, IEnumerable <Uri> graphFilter, IProgressLog progressLog, int reportInterval) { return(new RdfFileGenerator(resourceMap, graphFilter, progressLog, reportInterval)); }
public RdfFileGenerator(IResourceFileMapper resourceMap, IEnumerable <Uri> graphFilter, IProgressLog progressLog, int reportInterval) { _resourceMap = resourceMap; _graphFilter = graphFilter?.ToList() ?? new List <Uri>(0); _noFilter = _graphFilter.Count == 0; _nquadsFormatter = new NQuads11Formatter(); _progressLog = progressLog; _reportInterval = reportInterval; }
public HtmlFileGenerator(IDataDockUriService uriService, IResourceFileMapper resourceMap, IViewEngine viewEngine, IProgressLog progressLog, int reportInterval, Dictionary <string, object> addVariables) { _resourceMap = resourceMap; _viewEngine = viewEngine; _progressLog = progressLog; _numFilesGenerated = 0; _uriService = uriService; _reportInterval = reportInterval; _addVariables = addVariables ?? new Dictionary <string, object>(); }
public IResourceStatementHandler MakeHtmlFileGenerator( IDataDockUriService uriService, IResourceFileMapper resourceMap, IViewEngine viewEngine, IProgressLog progressLog, int reportInterval, Dictionary <string, object> addVariables) { return(new HtmlFileGenerator(uriService, resourceMap, viewEngine, progressLog, reportInterval, addVariables)); }
/// <summary> /// Create a new repository that updates the local clone of a DataDock GitHub repository /// </summary> /// <param name="targetDirectory">The path to the directory containing the local clone</param> /// <param name="repositoryUri">The base IRI for DataDock graphs in this repository</param> /// <param name="progressLog">The progress logger to report to</param> /// <param name="quinceStoreFactory">a factory for creating an IQuinceStore instance to access the Quince store of the GitHub repository</param> /// <param name="fileFileGeneratorFactory">a factory for creating an <see cref="IFileGeneratorFactory"/> instance to generate the statically published HTML files for the GitHub repository</param> /// <param name="rdfResourceFileMapper">Provides the logic to map resource URIs to the path to the static RDF files for that resource</param> /// <param name="htmlResourceFileMapper">Provides the logic to map resource URIs to the path to the static HTML files for that resource</param> /// <param name="uriService">Provides the logic to generate URIs for DataDock resources</param> public DataDockRepository( string targetDirectory, Uri repositoryUri, IProgressLog progressLog, IQuinceStoreFactory quinceStoreFactory, IFileGeneratorFactory fileFileGeneratorFactory, IResourceFileMapper rdfResourceFileMapper, IResourceFileMapper htmlResourceFileMapper, IDataDockUriService uriService) { _targetDirectory = targetDirectory; _repositoryUri = repositoryUri; _progressLog = progressLog; _quinceStore = quinceStoreFactory.MakeQuinceStore(targetDirectory); _fileGeneratorFactory = fileFileGeneratorFactory; _rdfResourceFileMapper = rdfResourceFileMapper; _htmlResourceFileMapper = htmlResourceFileMapper; _uriService = uriService; }