Reading RDF - Data Is Stored In Triples: Subject, Predicate, Object?
Feb 17, 2010
After browsing the internet on how to read RDF Triples, the only things i came up with were user created libraries and so on. Some MSDN documentation on Microsoft's website confused me as well, as trying to import the Namespace shown was not possible. (Maybe it's possible just in C#? no idea).So how would someone read an RDF Triple using VB.NET? RDF is an XML format in which data is stored in triples: subject, predicate, object.
Example:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">[code]....
View 3 Replies
ADVERTISEMENT
Nov 27, 2011
here any algorithms/pseudocode for reading/parsing 3-column csv data and determining unique objects/attributes/values?
example data:
john,height,1.75
george,age,21
[Code]....
i have already implemented a solution of my own but it's too slow and i can't find any relevant literature on the internet.
View 6 Replies
Sep 29, 2011
I want to read gmail mails using .net. I want All Addresses which contains in "To" Field, "Subject" and "Date of email". How can I do this??
For Example:
To:ather@gmail.com,abbas@gmail.com,khan@gmail.com
From:aali@gmail.com
Subject:Hi, How are you?
Date:29 Sep 2011
Now I want to get the following
1) ather@gmail.com,abbas@gmail.com,khan@gmail.com
2) 29 Sep 2011
3) Hi, How are you?
[URL]
View 3 Replies
Nov 12, 2009
how to read all the tables returned by SQL Stored Procedure? My Stored procedure returns two tables:
ID Name
-----------
1 Jeff
2 Joe
[code]....
i want to read data from both of these tables. I tried using SQLDataReader and then populating into datatables but then i can only read the values of 1st table. I want to read both the table values. How do i do it?
View 1 Replies
Nov 12, 2009
Can any one provide me the link or give me an idea how to read all the tables returned by SQL Stored Procedure?
My Stored procedure returns two tables:
ID Name
-----------
1 Jeff
2 Joe
ID Pages
----------
1 2
i want to read data from both of these tables. I tried using SQLDataReader and then populating into datatables but then i can only read the values of 1st table. I want to read both the table values. How do i do it? please let me know if you guys have any ideas how to deal with this.
View 1 Replies
Mar 7, 2012
I develop a simple application usiing VB.NET, VisualStudio 2008, that read input from a serial port
(from another device). I use the class SerialPort.
Using HyperTerminal I can see the input , it's fine. looks like :
S0P,A,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0 S0P,A,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[Code]...
View 5 Replies
May 10, 2010
Is this class normally slow or maybe there is something in my process making it slow.I have to import 170,000 rows of data from a fixed length text file into a SQL table. It takes about 2 minutes in a DTS package on SQL server 2000. But we are migrating to a SQL 2008 server and since this code has several manual steps and does not manipulate the data I thought it would be easier to use the TextFieldParser object to handle reading in the data.
Here is the code:
CODE:
View 15 Replies
Aug 27, 2011
im trying to read a database that is online. My goal is to be able to store a database online, and be able to edit it through my application and the web (the web part is done). all that remains is the application.
View 5 Replies
Oct 7, 2009
Why is this not working for me? What is wrong with my code below? I am trying to read a stored proc and applying values to labels. Getting error that say "Incorrect syntax near CareerInner".........
Private Sub LoadData()
' Define data objects
Dim conn As SqlConnection
[Code]......
View 2 Replies
Mar 16, 2010
I believe I have 2 problems. First, I have 1 program (VB6) that reads and stores emails from a department mailbox into a database. This program uses mapi and CDO. I have a 2nd program written in VB 2008 that displays the email information that was stored in the database. Everything works fine except the user now needs all formatting to be displayed ie highlighted, bolded text, etc contained in the email. The first problem is the email is stored in the database as plain text. I don't know how to get HTML formatted text from MAPI/CDO. Secondly, if I did store the email message in HTML format, would I be able to display in a .NET control on the form other than using the Web Browser?
View 5 Replies
Jun 8, 2010
Hi,in my application i have to read from an excel files and check the value of every cell i'm using an OleDb connection to open it and reading but i have this issue if some of the cells in the excel sheet is having this warning when i try to read it returns DBNull .knowing that i can not force the user for not having this warning ...i have to solve this within my code .
View 5 Replies
Mar 10, 2011
well heres another issue i can't find a solution to. Look at this example
vb.net
Private Sub Button1_Click(sender As Object, _ e As EventArgs) Handles Button1.Click Button1.Tag = LblPlacer.MarginEnd Sub Private Sub Button2_Click(sender As Object, _ e As EventArgs) Handles Button2.Click Button1.Margin = Button1.Tag ' this is wrong huhEnd Sub
so how do i do this? what i am doing is as follows, when button1 is clicked the placer location is stored in button 1's tag property, this placer label is moved elsewhere by modifying its location in some manner. when i click button 2 then button 1 is moved to the location of the placer label when button1 was clicked.
As for solutions this is just an exercise within these constraints, i know i could set a global thickness and use this but i wish for this example to use the Tag Property as although storing onto the tag is easy and examples abound, I have found no examples of what to do with an object in a tag.
View 2 Replies
May 13, 2009
I am getting the following erro message: "Unable to cast object of type 'System.String' to type 'System.Predicate`1[System.String]'." on the line of code: If Not StrgFrag.Exists(wrd) Then I was expecting a True/False response and assumed it would work given that wrd is a String variables and StrgFrag in a List(of String). Do I need to reference the wrd variable differently? Dim StrgFrag As New List(Of String)
[Code]....
View 2 Replies
Feb 23, 2009
I am able to get a sql statement to an object. However when attempt to do the same type of code for the stored procedure it does not work.
Public Function ListDMR() As DMRList
Me.Connection()
Dim objALLDMRlist As New DMRList
[code]....
View 1 Replies
Jun 2, 2010
Structure MainStruct
Dim Ans1 As String
Dim Ans2 As String
End Structure
[code]....
The question is how can i read back the contents of the list, stored in the Session?I mean something like...
Build = Session("MyData")
View 2 Replies
May 9, 2012
So I have a some code I've been using for quite a while and it has worked fine. This project is rather large so I'm using a detailed namespace and I can't get it to work.[code]...
View 1 Replies
Jan 27, 2012
This is my problem. If I write this -
[Code]...
But I'm just out of my wit why this code, written to do the same thing is not working -
[Code]...
View 1 Replies
Jan 4, 2010
I have no chance to simple search a property in my property list by using the ".Title" of the property. Instead of using "For each > If .Title = SearchTitle" I prefer to do it with the Predicate and ".Find" methode.
Can someone help me to find out, how to avoid using the local variable " _SearchProperty" in the example below?
Private Sub NumericUpDownFrequency_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDownFrequency.ValueChanged
Dim PropFrequency As F_SCANT30_DEVICES.TB.Devices.clsFscanProperty
[code]....
View 3 Replies
Aug 20, 2010
My issue is to Find exact one Calendar object from a List Of(Calendar) by passing a particular date. I got to know about the predicate but not sure about passing parameter to it.
colorcode is List Of (Calendar) and calendar class has a property called DtmDate with which I want to compare and return the desired object. Dim a As Calendar = colourcode.Find(AddressOf New Calendar.FindByDate)
I got the predicate samples from Google and reached till now. But not sure how to pass my parameter i.e. date to it.
View 1 Replies
Jun 3, 2011
I's there a way that I can access the properties of all controls stored into my array of object using LINQ.
Public Sub DisAble(Byval ParamArray ctrlCollection() As Object)End Sub That is my sub routine where im trying to reset all controls that will stored into that object of array. But im trying to attain that using LINQ so I wont use any loops to access all of it.
View 7 Replies
Jul 27, 2010
I have the following xml document which would be taken from the web and stored into an XDocument object.
[Code]...
View 3 Replies
Apr 24, 2012
I've got the following to sort entities by their job position. The desired order ist defined in another array. In C# this code works:[code]However I will have to convert this to VB.net. I read the equivalent would be something like the following:[code]This does not compile, gives me "Expression expected" right after the Function(x). What am I doing wrong?
View 1 Replies
Jul 26, 2011
I need to count the items that meet a criteria in a list(of structure) in .net 2.0. eg
Dim listcars as new list(or car)
Structure car
Dim Name as string
Dim year as integer
End structure
Now i need to count all cars with name toyota etc, how do i do it.
[URL]
View 5 Replies
Apr 16, 2010
Having a bit of trouble using the List.Find with a custom predicate i have a function that does this
[code]...
by doing it this way means i have to have a shared "currentKey" object in the class, and i know there has to be a way to pass in the values i'm interested in of CurrentKey (namely, keyname, and oldkey) ideally i'd like to call it by something like keys.Find(AddressOf FindByOldKeyAndName(Name,OldVal))however when i do this i get compiler errors.How do i call this method and pass in the values?
View 2 Replies
Jan 12, 2011
I am pretty confused about lambdas. What I am trying to do here is write a function that will return an object from a certain table with a certain criteria. So lets say I can write:
function GetRecord(TableName as string,Criteria as string) as object
'do the linq-stuff
end function
Now I don't care if the parameters are strings or lambdas or whatever, but the end result must be that at runtime I don't know which table and which criteria will be used. As sometimes I need to get a customer record by email and sometimes a product by id etc. If possible I would prefer returning a list of matching objects and then I would just use .firstordefault when I want 1 (such as by id...).
View 2 Replies
Sep 14, 2011
I'm trying to get the price out (90.0) of this xml document but get it to work, i've tried using the xmlTextReader and the ReadElementString function but I guess I need to get the attribute. I then looked at using the GetAttribute function.
[Code]...
View 1 Replies
Mar 11, 2010
I have a program that will download files from a company website given a list of links. The site requires authentication, and I do have code that will set the authentication cookie in the request header. I get the authentication cookie from a Perl script we have. What I would love to do is have my vb .net program get the authentication cookie based on my username and password. The perl script goes to the following link:
[URL]
The it reads the cookie out of the response. Here is the code I have, but my cookie count always comes back at zero. :(
Dim cookieJar As New Net.CookieContainer()
Dim cookie As New Net.Cookie
Dim req As Net.HttpWebRequest
[Code].....
View 1 Replies
May 4, 2009
I'm trying to pass a business object from one WinForm to another WinForm for modification, and then repopulate the text boxes, etc. on the first form with the updated values.However, it seems that the object values set in the second form are not "sticking" when the code control returns to the first form.Is there a way to view the memory location of an object in VB.NET? I want to first make sure that the object variable on the second form is pointing to the same memory address as the object on the first form. Then I can take it from there.
In a separate VB project, I passed a simple object to a second form, modified the values, and re-displayed the object's values on the first form. It worked fine. In my real app, I'm passing an object that is a property of another object, which may be why it isn't working.SOLUTION: The problem was that I was using a DeepCopy() function that I found to simplify copying the properties of one object to another. Removing that function and manually setting the values to the passed object on the second form (ex. obj.property1
View 1 Replies
May 23, 2012
I have published xml document through web service like this
<WebMethod()> _
Public Function HelloWorld() As XmlDocument
Dim xmlDoc As New XmlDocument
[code]....
View 1 Replies
Apr 3, 2012
I am loading a certificate from string like this:
public static void Test()
{
byte[] arrayCertificate;
[Code]....
But this certificate doesn't have a "Subject Unique Identifier" Take a look at this:
[URL] (The part of Structure of a certificate)
And I want to know how can I read that value from my .NET code (I looked that I can get SerialNumber, Thumbprints and others but there is no Subject UID anywhere).
If anyone can share an openssl command to include this UID for the certificate :-) (pfx one)
View 1 Replies