public EntityContext( IEntityContextFactory factory, IMappingsRepository mappings, IEntityStore entityStore, IEntitySource entitySource, IBaseUriSelectionPolicy baseUriSelector, IRdfTypeCache typeCache, IBlankNodeIdGenerator blankIdGenerator, IResultTransformerCatalog transformerCatalog, IEntityCaster caster, IDatasetChangesTracker changeTracker, IResourceResolutionStrategy resourceResolutionStrategy, ILogger log) : this(changeTracker) { _factory = factory; _entityStore = entityStore; _entitySource = entitySource; _baseUriSelector = baseUriSelector; _mappings = mappings; _typeCache = typeCache; _blankIdGenerator = blankIdGenerator; _transformerCatalog = transformerCatalog; _caster = caster; _typedEntityMapping = _mappings.MappingFor <ITypedEntity>(); _typesPropertyMapping = _typedEntityMapping.PropertyFor("Types"); _resourceResolutionStrategy = resourceResolutionStrategy; _log = log; if (_baseUriSelector == null) { _log.Warning("No Base URI Selection Policy. It will not be possible to use relative URIs"); } }
public EntityContext( IEntityContextFactory factory, IMappingsRepository mappings, IEntityStore entityStore, IEntitySource entitySource, IBaseUriSelectionPolicy baseUriSelector, IRdfTypeCache typeCache, IBlankNodeIdGenerator blankIdGenerator, IResultTransformerCatalog transformerCatalog, IEntityCaster caster, IDatasetChangesTracker changeTracker, ILogger log) : this( factory, mappings, entityStore, entitySource, baseUriSelector, typeCache, blankIdGenerator, transformerCatalog, caster, changeTracker, null, log) { }
/// <summary>Creates a new instance of <see cref="OntologyAccessor"/>.</summary> internal OntologyAccessor(Entity entity, IOntology ontology, INodeConverter nodeConverter, IResultTransformerCatalog resultTransformers) { _tripleStore = entity.Context.Store; _entity = entity; _ontology = ontology; _resultTransformers = resultTransformers; _nodeConverter = nodeConverter; _context = entity.Context; }
/// <summary>Initializes a new instance of the <see cref="EntityProxy" /> class.</summary> /// <param name="entity">The entity.</param> /// <param name="entityMapping">The entity mappings.</param> /// <param name="resultTransformers">The result transformers.</param> /// <param name="selector">The named graph selector.</param> /// <param name="log">Logging facility.</param> public EntityProxy( Entity entity, IEntityMapping entityMapping, IResultTransformerCatalog resultTransformers, INamedGraphSelector selector, ILogger log) { _store = (_context = entity.Context).Store; _entity = entity; _entityMapping = entityMapping; _resultTransformers = resultTransformers; _selector = selector; _log = log; }
internal Entity(EntityId entityId, IEntityContext context, IFallbackNodeConverter fallbackNodeConverter, IResultTransformerCatalog transformerCatalog) : this(entityId, context) { _fallbackNodeConverter = fallbackNodeConverter; _transformerCatalog = transformerCatalog; }