Skip to content

Commit

Permalink
DeserializeCollectionFromGraph acceptDuplicates parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesalvo committed Oct 5, 2024
1 parent 68f711f commit dd38fb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RDFSharp/Model/RDFModelUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,9 @@ public static List<RDFDatatype> ExtractDatatypeDefinitions(this RDFGraph graph)
/// <summary>
/// Rebuilds the collection represented by the given resource within the given graph
/// </summary>
internal static RDFCollection DeserializeCollectionFromGraph(RDFGraph graph, RDFResource collRepresentative, RDFModelEnums.RDFTripleFlavors expectedFlavor)
internal static RDFCollection DeserializeCollectionFromGraph(RDFGraph graph, RDFResource collRepresentative, RDFModelEnums.RDFTripleFlavors expectedFlavor, bool acceptDuplicates=false)
{
RDFCollection collection = new RDFCollection(expectedFlavor == RDFModelEnums.RDFTripleFlavors.SPO ? RDFModelEnums.RDFItemTypes.Resource : RDFModelEnums.RDFItemTypes.Literal);
RDFCollection collection = new RDFCollection(expectedFlavor == RDFModelEnums.RDFTripleFlavors.SPO ? RDFModelEnums.RDFItemTypes.Resource : RDFModelEnums.RDFItemTypes.Literal, acceptDuplicates);
RDFGraph rdfFirst = graph[null, RDFVocabulary.RDF.FIRST, null, null];
RDFGraph rdfRest = graph[null, RDFVocabulary.RDF.REST, null, null];

Expand Down

0 comments on commit dd38fb5

Please sign in to comment.