This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Property Name="Runtime" Type="Decimal" Nullable="true"> | |
<ValueAnnotation Term="Sparql.Uri" String="http://dbpedia.org/property/runtime"/> | |
</Property> | |
<NavigationProperty Name="Director" Relationship="DBPedia.Film_Director" FromRole="Film" ToRole ="Director"> | |
<ValueAnnotation Term="Sparql.Property" String="http://dbpedia.org/ontology/director"/> | |
</NavigationProperty> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<EntityType Name="Film"> | |
<Key> | |
<PropertyRef Name="Id"/> | |
</Key> | |
<Property Name="Id" Type="Edm.String" Nullable="false"> | |
<ValueAnnotation Term="Sparql.IdentifierPrefix" | |
String="http://dbpedia.org/resource/"/> | |
</Property> | |
</EntityType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx" Version="3.0"> | |
<edmx:DataServices xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="2.0"> | |
<Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" Namespace="DBPedia"> | |
<Using Namespace="ODataSparqlLib.Annotations" Alias="Sparql"/> | |
<EntityType Name="Film"> | |
<Key> | |
<PropertyRef Name="Id"/> | |
</Key> | |
<Property Name="Id" Type="Edm.String" Nullable="false"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestMethod] | |
public void TestImporter() | |
{ | |
var storeId = Guid.NewGuid().ToString(); | |
GedcomImporter.Import(DataFolder + "simple.ged", "type=embedded;storesdirectory=c:\\brightstar;storename=" + storeId); | |
var ctx = new GedComContext("type=embedded;storesdirectory=c:\\brightstar;storename=" + storeId); | |
Assert.AreEqual(3, ctx.Individuals.Count()); | |
Assert.AreEqual(1, ctx.Families.Count()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Xml.Linq; | |
namespace BrightstarDB.Gedcom | |
{ | |
public class GedcomImporter | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace BrightstarDB.Gedcom | |
{ | |
[Entity] | |
public interface IFamily | |
{ | |
IMarriageEvent MarriageEvent { get; set; } | |
IIndividual Husband { get; set; } | |
IIndividual Wife { get; set; } | |
ICollection<IIndividual> Children { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 HEAD | |
1 CHAR ASCII | |
1 SOUR ID_OF_CREATING_FILE | |
1 GEDC | |
2 VERS 5.5 | |
2 FORM Lineage-Linked | |
1 SUBM @SUBMITTER@ | |
0 @SUBMITTER@ SUBM | |
1 NAME /Submitter/ | |
1 ADDR Submitters address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DynamicObjectSystem : IDynamicObjectSystem | |
{ | |
private readonly string _connectionString; | |
private readonly string _storeId; | |
private readonly DynamicStore _dynamicStore; | |
public const string UriPrefix = "http://www.brightstardb.com/dynamic/system/"; | |
public DynamicObjectSystem(string connectionString, string storeId) | |
{ | |
_connectionString = connectionString; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IDynamicObjectSystem | |
{ | |
/// <summary> | |
/// Returns an enumeration of all the 'types' defined in the dynamic system. | |
/// </summary> | |
IEnumerable<dynamic> Types { get; } | |
/// <summary> | |
/// Either creates a new dynamic object to represent the specified type or updates the instanceProperties | |
/// property of the existing type. |
NewerOlder