Show / Hide Table of Contents

Class GraphSearchFacet

Represents search options used for graph searches. Graph searches find items directly related to a TargetItem.

Inheritance
object
GraphSearchFacet
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
[DataContract(Namespace = "http://ns.colectica.com/2009/07/")]
public class GraphSearchFacet
Examples
// Search for all VariableStatistics related to the PhysicalInstance.
var facet = new GraphSearchFacet();
facet.TargetItem = physicalInstanceIdentifier;
facet.UseDistinctTargetItem = true;
facet.UseDistinctResultItem = true;
facet.ItemTypes.Add(DdiItemType.VariableStatistic);

// Perform the search.
var results = client.GetRepositoryItemDescriptionsBySubject(facet);

// Write a line for each result.
foreach (var result in results)
{
    Console.WriteLine(result.Label["en-US"]);
}

Constructors

GraphSearchFacet()

Initializes a new instance of the GraphSearchFacet class.

Declaration
public GraphSearchFacet()

Properties

ItemTypes

Gets the types of items to be found.

Declaration
[DataMember(Name = "ItemTypes")]
public Collection<Guid> ItemTypes { get; set; }
Property Value
Type Description
Collection<Guid>

Predicate

Gets or sets the predicate that defines relationship types to be followed while searching.

Declaration
[DataMember]
public Guid Predicate { get; set; }
Property Value
Type Description
Guid

TargetItem

Gets or sets the target item, to which search results must be related.

Declaration
[DataMember]
public IdentifierTriple TargetItem { get; set; }
Property Value
Type Description
IdentifierTriple

UseDistinctResultItem

Gets or sets a value indicating whether only one version of each matching item will be returned, or if all matching versions of items should be returned.

Declaration
[DataMember]
public bool UseDistinctResultItem { get; set; }
Property Value
Type Description
bool

UseDistinctTargetItem

Gets or sets a value indicating whether only the explicit version of the target item will be searched, or if all versions of the target item will be searched.

Declaration
[DataMember]
public bool UseDistinctTargetItem { get; set; }
Property Value
Type Description
bool

Extension Methods

Extensions.EnsureCollectionInstantiation(GraphSearchFacet)
Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX