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
@prefix products: <http://www.networkedplanet.com/product/> . | |
@prefix categories: <http://www.networkedplanet.com/category/> . | |
@prefix schema: <http://www.networkedplanet.com/schema/> . | |
products:brightstardb schema:label "BrightstarDB" . | |
products:brightstardb schema:in-category categories:nosql . | |
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
@prefix comp: <http://www.networkedplanet.com/es/component/> . | |
@prefix entities: <http://www.networkedplanet.com/es/entity/> . | |
@prefix schema: <http://www.networkedplanet.com/es/schema/> . | |
entities:e1 a schema:Entity . | |
comp:c1 a schema:Moveable . | |
comp:c1 schema:has-entity entities:e1 . | |
comp:c1 schema:x 0 . | |
comp:c1 schema:y 0 . |
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
select ?e ?c where { | |
?c a <http://www.networkedplanet.com/es/schema/Moveable> . | |
?c <http://www.networkedplanet.com/es/schema/has-entity> ?e1 . | |
} | |
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
@prefix comp: <http://www.networkedplanet.com/es/component/> . | |
@prefix entities: <http://www.networkedplanet.com/es/entity/> . | |
@prefix schema: <http://www.networkedplanet.com/es/schema/> . | |
# define the entity and connect the properties directly to it | |
entities:e1 a schema:Entity . | |
entities:e1 schema:X 0 . | |
entities:e1 schema:Y 0 . | |
# declare the component and hook it to the entity |
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 is a set of unit tests that provide a simple walkthrough of dotNetRdf. | |
* Many samples are taken from or inspired by the User Guide Basic Tutorial. | |
* The full website is here http://www.dotnetrdf.org/default.asp | |
* | |
* This code is made available under the following license: | |
* http://creativecommons.org/licenses/by/3.0/ | |
* | |
* Author: Graham Moore | |
* [email protected] |
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 interface IEventFeedService | |
{ | |
void AssertSubscriber(string userName, IEnumerable<Uri> topicsOfInterest); | |
IEnumerable<IEvent> GetSubscriberTimeline(string userName, DateTime since); | |
IEnumerable<IEvent> GetTopicTimeline(string topicId, DateTime since); | |
void AssertTopic(Uri topicId, string label, string description); | |
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
"type=embedded;storesdirectory=c:\brightstar;storename=Test1" |
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
[TestClass] | |
public class EntityContextTests | |
{ | |
private const string ConnectionString = "type=embedded;storesdirectory=c:\\brightstar"; | |
private static MyEntityContext GetContext(string storeId) | |
{ | |
return new MyEntityContext(ConnectionString + ";storename=" + storeId); | |
} |
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
// gets a new BrightstarDB DataObjectContext | |
var dataObjectContext = BrightstarService.GetDataObjectContext(); | |
// create a dynamic context | |
var dynaContext = new BrightstarDynamicContext(dataObjectContext); | |
// open a new store | |
var storeId = "DynamicSample" + Guid.NewGuid().ToString(); | |
var dynaStore = dynaContext.CreateStore(storeId); |
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
[TestClass] | |
public class SystemTests | |
{ | |
private const string ConnectionString = "type=embedded;storesdirectory=c:\\brightstar"; | |
[TestMethod] | |
public void TestCreateObjectSystem() | |
{ | |
var storeId = Guid.NewGuid().ToString(); | |
var dos = new DynamicObjectSystem(ConnectionString, storeId); |
OlderNewer